curl -sS -X POST 'https://api.pbintegracoes.com/v1/checkouts' \
-H "Authorization: Bearer $CONNECT_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"reference_id": "pedido-1001",
"customer_modifiable": true,
"customer": {
"name": "Maria Silva",
"email": "maria.demo@example.com"
},
"items": [
{
"reference_id": "sku-1",
"name": "Camiseta",
"quantity": 1,
"unit_amount": 7900
}
],
"payment_methods": [
{
"type": "CREDIT_CARD"
},
{
"type": "PIX"
},
{
"type": "BOLETO"
}
],
"reusable": false,
"branding": {
"name": "Web Works - Web Design",
"theme": "painel",
"colors": [
"#171717",
"#171717",
"#f5f5f4",
"#0b1220",
"#ffffff"
],
"font": "inter",
"logo_url": "https://cdn.jsdelivr.net/gh/pigment/fake-logos@latest/logos/medium/grayscale/the-web-works.png"
},
"extras": {
"summary_background_image": "https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1200&q=80"
},
"payment_methods_configs": [
{
"type": "credit_card",
"config_options": [
{
"option": "INSTALLMENTS_LIMIT",
"value": "12"
},
{
"option": "INTEREST_FREE_INSTALLMENTS",
"value": "3"
}
]
}
]
}'