Campaigns .: Claim Legacy

API Reference / v14

Claim a Legacy Loyalty Campaign

This endpoint claims a legacy loyalty campaign via ID.

Request Endpoint

POST /v14/loyalties/legacy/:campaign_id/claims

Authorization Required – User Token in Header

Authorization: token 123456-75489120749...

Request Body

  "legacy_loyalty": {
    "legacy_id": "12323"

Request Parameters

Param Type Required Description
legacy_id String Yes The unique identifier of the legacy loyalty card

cURL Example

curl -X POST -H Accept:application/json -H Content-Type:application/json -H 'Authorization:token 123456-75489120749...' -d '{ "legacy_loyalty": { "legacy_id": "12323", } }'

Example Responses

HTTP/1.1 200 OK

  "claim": {
    "id": 12323,
    "code": "legacy_loyalty_cohort",
    "value_amount": 1000,
    "value_remaining_amount": 1000

Response Parameters

Param Type Description
id Integer The ID of the legacy loyalty claim.
code String The legacy loyalty cohort code.
value_amount Integer The value of the claim.
value_remaining_amount Integer The remaining value of the campaign.


HTTP/1.1 404 Not found