Skip to main content
POST
/
v1
/
products
/
items
/
redeem
Redeem Product Item
curl --request POST \
  --url https://dev.api.mufi.app/v1/products/items/redeem \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "product_item_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "item_id": 123,
  "redeemed_at": 123,
  "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

A JWT Access Token obtained from Google Cloud.

Body

application/json

The ID of the product item to redeem. Product items can only be redeemed once.

product_item_id
string<uuid>
required

The ID of the product item to redeem.

Response

A product item was successfully redeemed.

id
string<uuid>
required

The ID of the product item.

created_at
string<date-time>
required

The date and time the product item was created.

updated_at
string<date-time>
required

The date and time the product item was last updated.

product_id
string<uuid>
required

The ID of the product.

item_id
integer
required

The unique item ID as an integer of the product item. If NFT, this is the NFT ID too.

user_id
string<uuid>
required
redeemed_at
integer | null

The UNIX timestamp when the product item was redeemed. Null or undefined if the product item has not been redeemed.