younifyd
Menu

Import Loyalty Cards

Import loyalty cards

POST/v1/loyalty_programs/{loyaltyProgramId}/import_cards

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Import Loyalty Cards action (under management).
  3. Fill in the fields below, then reference the result from later steps as {{importLoyaltyCards.response.data}}.

Request

Path parameters

loyaltyProgramIdinteger (int64)required

Identifier of the card-based loyalty program containing the loyalty card. You can get the ID with the [List loyalty programs](https://docs.talon.one/management-api#tag/Loyalty/operation/getLoyaltyPrograms) endpoint.

Request body

Enter the body as JSON in the step's Body field.

upFilestring (csv)

The file containing the data that is being imported.

json
{
  "upFile": "string"
}

Response

Returns 200 with an object. Read it in later steps with {{importLoyaltyCards.response.data.<field>}}.

idinteger (int64)

The internal ID of this entity.

createdstring (date-time)

The time this entity was created.

accountIdinteger (int64)

The ID of the account that owns this entity.

userIdinteger (int64)

The ID of the user associated with this entity.

entitystring

The name of the entity that was imported.

amountinteger (int64)

The number of values that were imported.

json
{
  "id": 6,
  "created": {},
  "accountId": 3886,
  "userId": 388,
  "entity": "AttributeAllowedList",
  "amount": 10
}

Need more? See the Talon.One guide for connection setup and behaviour shared by every action.