Skip to main content
POST
/
api
/
public
/
v1
/
checkout-offers
/
create
Create checkout offer
curl --request POST \
  --url http://app.localhost:3000/api/public/v1/checkout-offers/create \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "storeId": "<string>",
  "type": "<string>",
  "titleTrans": {},
  "lineItems": [
    {
      "priceId": "<string>",
      "quantity": 2
    }
  ],
  "expiryDate": "2023-11-07T05:31:56Z",
  "promotionIds": [
    "<string>"
  ]
}
'
{
  "message": "<string>",
  "code": "<string>",
  "issues": [
    {
      "message": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
storeId
string
required
type
string
required
titleTrans
object
required
lineItems
object[]
required
Minimum array length: 1
expiryDate
string<date-time>
promotionIds
string[]

Response

Successful response