curl --request POST \
--url https://api.econpay.com.br/payments/order \
--header 'Authorization: Bearer SEU_TOKEN_JWT' \
--header 'Content-Type: application/json' \
--data '{
"access_token": "SEU_ACCESS_TOKEN",
"customer": {
"name": "João da Silva",
"email": "[email protected]",
"document": "12345678900",
"phone": {
"country_code": "55",
"area_code": "11",
"number": "999999999"
}
},
"items": [{
"name": "Produto Teste",
"quantity": 1,
"price": 10000
}],
"payment": {
"type": "pix",
"installments": 1
},
"shipping": {
"name": "Digital",
"price": 0
},
"subtotal": 10000,
"total": 10000
}'