curl -X POST "https://app.atriby.com/api/v1/orders" \
-H "Authorization: Bearer <TOKEN>" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order_001_create" \
-d '{
"externalId": "order_001",
"platform": "checkout",
"paymentMethod": "credit_card",
"status": "pending",
"createdAt": "2026-05-10T15:34:14Z",
"isTest": true,
"amounts": {
"currency": "BRL",
"grossCents": 20000,
"netToSellerCents": 17000
},
"products": [
{
"externalId": "prod_001",
"sku": "SKU-001",
"name": "Produto exemplo",
"quantity": 1,
"unitPriceCents": 20000
}
],
"tracking": {
"utmSource": "facebook",
"utmMedium": "cpc",
"utmCampaign": "lancamento"
}
}'