Domínio da sua loja (ex: sualoja.centralcart.com.br)
curl --request POST \
--url https://api.centralcart.com.br/v1/webstore/cart \
--header 'Content-Type: application/json' \
--header 'x-store-domain: <x-store-domain>' \
--data '{
"items": [
{
"id": 123,
"quantity": 123,
"fields": {}
}
]
}'
[
{
"id": 1,
"category_id": 1,
"store_id": 1,
"position": 1,
"enabled": true,
"name": "VIP Inicial",
"type": "SINGLE",
"slug": "vip-inicial",
"image": "https://cdn.centralcart.com.br/stores/1/packages/image.png",
"fields": [
{ "id": 1, "name": "nickname", "type": "TEXT", "description": "Seu nickname" }
],
"pricing": {
"price": 10,
"compare_at": 20,
"percent_discount": -50
},
"stock": {
"quantity": 100,
"available": true,
"min_amount": 1
}
}
]
Retorna detalhes dos pacotes do carrinho para exibição antes do checkout.
curl --request POST \
--url https://api.centralcart.com.br/v1/webstore/cart \
--header 'Content-Type: application/json' \
--header 'x-store-domain: <x-store-domain>' \
--data '{
"items": [
{
"id": 123,
"quantity": 123,
"fields": {}
}
]
}'
[
{
"id": 1,
"category_id": 1,
"store_id": 1,
"position": 1,
"enabled": true,
"name": "VIP Inicial",
"type": "SINGLE",
"slug": "vip-inicial",
"image": "https://cdn.centralcart.com.br/stores/1/packages/image.png",
"fields": [
{ "id": 1, "name": "nickname", "type": "TEXT", "description": "Seu nickname" }
],
"pricing": {
"price": 10,
"compare_at": 20,
"percent_discount": -50
},
"stock": {
"quantity": 100,
"available": true,
"min_amount": 1
}
}
]
[
{
"id": 1,
"category_id": 1,
"store_id": 1,
"position": 1,
"enabled": true,
"name": "VIP Inicial",
"type": "SINGLE",
"slug": "vip-inicial",
"image": "https://cdn.centralcart.com.br/stores/1/packages/image.png",
"fields": [
{ "id": 1, "name": "nickname", "type": "TEXT", "description": "Seu nickname" }
],
"pricing": {
"price": 10,
"compare_at": 20,
"percent_discount": -50
},
"stock": {
"quantity": 100,
"available": true,
"min_amount": 1
}
}
]