Authorization: Bearer ********************
{
"customer": {
"name": "string",
"email": "string",
"document": "string",
"birthdate": "string",
"ip": "string",
"phone": {
"country_code": "string",
"area_code": "string",
"number": "string"
},
"address": {
"line_1": "string",
"line_2": "string",
"zip_code": "string",
"city": "string",
"state": "string",
"country": "string"
}
},
"items": [
{
"name": "string",
"quantity": "string",
"price": "string"
}
],
"payment": {
"type": "credit",
"installments": "string",
"credit_card": {
"number": "string",
"holder_name": "string",
"exp_month": 0,
"exp_year": 0,
"cvv": "string"
},
"currency": "USD"
},
"shipping": {
"name": "string",
"price": "string"
},
"discount": "string",
"subtotal": "string",
"total": "string"
}
curl --location --request POST 'https://payments.dubpay2.com.br/api/orders' \
--header 'store-id: ' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer": {
"name": "string",
"email": "string",
"document": "string",
"birthdate": "string",
"ip": "string",
"phone": {
"country_code": "string",
"area_code": "string",
"number": "string"
},
"address": {
"line_1": "string",
"line_2": "string",
"zip_code": "string",
"city": "string",
"state": "string",
"country": "string"
}
},
"items": [
{
"name": "string",
"quantity": "string",
"price": "string"
}
],
"payment": {
"type": "credit",
"installments": "string",
"credit_card": {
"number": "string",
"holder_name": "string",
"exp_month": 0,
"exp_year": 0,
"cvv": "string"
},
"currency": "USD"
},
"shipping": {
"name": "string",
"price": "string"
},
"discount": "string",
"subtotal": "string",
"total": "string"
}'
{
"message": "Order created successfully",
"data": {
"order_number": "K3EG01Z0Z1",
"data": {
"order_id": "or_aa8EWN8U1fexQvbb",
"success": true,
"pix": {
"qr_code": "pix-code"
}
},
"success": true
}
}