Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • transactionId <UUID>: unique identifier of the loyalty transaction created.

  • presentation (optional): object that returns Receipt content information set in Sanity here.

    • footer <string> (optional): this represents the content that will show in the footer of the receipt: Loyalty API v1 - Receipts

    • header <string>(optional): this represents the content that will show in the header of the receipt: Loyalty API v1 - Receipts

    • identifier <string>(optional): this represents the content that will show in the receipt to identify the order: Loyalty API v1 - Receipts

    • pointsEarned <string>(optional): this represents the points earned that will show in the receipt of the loyalty order: Loyalty API v1 - Receipts

    • totalPoints <string>(optional): this represents the total points balance that will show in the receipt of the loyalty order: Loyalty API v1 - Receipts

Success response example

...

Info

All error responses use the standard https://rbictg.atlassian.net/wiki/spaces/RDP/pages/4231725617/LLoyalty+API+v1+-+Error+Responses format.

  • HTTP 400 (Bad Request) if the request body has an incorrect format. In this case, the response will include details about which specific field or fields have an incorrect format.

  • HTTP 401 (Unauthorized) if authentication headers are missing or not valid.