younifyd
Menu

Export Loyalty Card Ledger

Export card's ledger log

GET/v1/loyalty_programs/{loyaltyProgramId}/cards/{loyaltyCardId}/export_log

Use it in a workflow

  1. Add a step and choose the Talon.One connector.
  2. Pick the Export Loyalty Card Ledger action (under management).
  3. Fill in the fields below, then reference the result from later steps as {{exportLoyaltyCardLedger.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.

loyaltyCardIdstringrequired

Identifier of the loyalty card. You can get the identifier with the [List loyalty cards](https://docs.talon.one/management-api#tag/Loyalty-cards/operation/getLoyaltyCards) endpoint. **Important**: The loyalty card ID requires [URL encoding](https://www.w3schools.com/tags//ref_urlencode.asp) if it contains special characters. For example, you must encode `NewCard2026%` as `NewCard2026%25`.

Query parameters

rangeStartstring (date-time)required

Only return results from after this timestamp. > [!note] **Note** > - This must be an RFC3339 timestamp string. > - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting > considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.

rangeEndstring (date-time)required

Only return results from before this timestamp. > [!note] **Note** > - This must be an RFC3339 timestamp string. > - You can include a time component in your string, for example, `T23:59:59` to specify the end of the day. The time zone setting > considered is `UTC`. If you do not include a time component, a default time value of `T00:00:00` (midnight) in `UTC` is considered.

dateFormatstring

Determines the format of dates in the export document.

One ofexcelISO8601

Response

Returns 200 with a string (csv). Read it in later steps with {{exportLoyaltyCardLedger.response.data.<field>}}.

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

Export Loyalty Card Ledger — Talon.One — Documentation