Create Reward Item

Changed on
post/reward-items/

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1
  • URL
    https://cf-blast.livelikecdn.com/api/v1/reward-items/
  • Auth
    none required

Request body

client_idstring required
namestring required
expires_atstring date

Date after which all transactions for the reward item expire; no debit or credit transactions are allowed after this date.

transaction_validity_daysinteger

Number of days from the transaction date for which the reward remains valid for the user.

Response

201

idstring
urlstring
client_idstring
namestring
expires_atstring
transaction_validity_daysstring

Example response

{
  "id": "42249086-45e0-483a-a158-95555ea9fc70",
  "url": "http://localhost:8000/api/v1/reward-items/42249086-45e0-483a-a158-95555ea9fc70/",
  "client_id": "FVQI5U57tfCyDV99YjhF3ExdlpiObg5JASvy81Mu",
  "name": "New Reward Item"
}

Changes

    • info

      added the new optional request property

    • info

      added the new optional request property

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status