curl --request POST \
--url https://api.fungies.io/v0/elements/checkout/create \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '
{
"offersIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"customFields": [
{
"id": "<string>",
"value": "<string>"
}
]
}
'{
"status": "<string>",
"data": {
"checkoutElement": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "ACTIVE",
"offers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "offer",
"internalId": null
}
],
"object": "checkoutElement",
"name": null,
"subscriptionOffer": false
}
}
}Create a new Checkout Element with offers
curl --request POST \
--url https://api.fungies.io/v0/elements/checkout/create \
--header 'Content-Type: application/json' \
--header 'x-fngs-public-key: <api-key>' \
--header 'x-fngs-secret-key: <api-key>' \
--data '
{
"offersIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"name": "<string>",
"customFields": [
{
"id": "<string>",
"value": "<string>"
}
]
}
'{
"status": "<string>",
"data": {
"checkoutElement": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "ACTIVE",
"offers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"object": "offer",
"internalId": null
}
],
"object": "checkoutElement",
"name": null,
"subscriptionOffer": false
}
}
}POST /v0/elements/checkout/create Request body
POST /v0/elements/checkout/create Positive response
"success"Show child attributes
Show child attributes
ACTIVE, DRAFT checkoutElement