elements
Create a new Checkout Element
elements
Create a new Checkout Element
Create a new Checkout Element with offers
POST
/
v0
/
elements
/
checkout
/
create
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 '{
"name": "<string>",
"type": "overlay",
"offersIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"customFields": [
{
"id": "<string>",
"value": "<string>"
}
]
}'
{
"status": "<string>",
"data": {
"checkoutElement": {
"object": "checkoutElement",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": null,
"type": "overlay",
"status": "ACTIVE",
"subscriptionOffer": false,
"offers": [
{
"object": "offer",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalId": null
}
]
}
}
}
Body
application/json
POST /v0/elements/checkout/create Request body
Available options:
overlay
, embed
Response
200
application/json
POST /v0/elements/checkout/create Positive response
Allowed value:
"success"
Available options:
overlay
, embed
Available options:
ACTIVE
, DRAFT
Available options:
checkoutElement
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 '{
"name": "<string>",
"type": "overlay",
"offersIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"customFields": [
{
"id": "<string>",
"value": "<string>"
}
]
}'
{
"status": "<string>",
"data": {
"checkoutElement": {
"object": "checkoutElement",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": null,
"type": "overlay",
"status": "ACTIVE",
"subscriptionOffer": false,
"offers": [
{
"object": "offer",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"internalId": null
}
]
}
}
}