Import loyalty cards

POST {{baseUrl}}/v1/loyalty_programs/:loyaltyProgramId/import_cards

Upload a CSV file containing the loyalty cards that you want to use in your card-based loyalty program. Send the file as multipart data.

It contains the following columns for each card:

  • identifier (required): The alphanumeric identifier of the loyalty card.
  • state (required): The state of the loyalty card. It can be active or inactive.
  • customerprofileids (optional): An array of strings representing the identifiers of the customer profiles linked to the loyalty card.

Note: We recommend limiting your file size to 500MB.

Example:

identifier,state,customerprofileids
123-456-789AT,active,Alexa001;UserA

Request Body

[{"name"=>"upFile", "value"=>"velit", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring