cURL
curl --request POST \ --url https://api.example.com/api/v1/order/create \ --header 'Content-Type: application/json' \ --data ' { "value": 123, "payerId": "<string>", "merchant": { "subMerchantId": "<string>" } } '
{ "message": "<string>", "order": { "id": "<string>", "paymentLinkId": "<string>", "value": 123, "status": "<string>", "qrCodeLink": "<string>", "link": "<string>", "createdAt": "<string>" } }
Crie uma nova ordem de pagamento Binance
Show Propriedades
curl -X POST "https://server.cryptouse.com.br/api/v1/order/create" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer seu_token_aqui" \ -d '{ "value": 150.00, "payerId": "user_123", "merchant": { "subMerchantId": "merch_456" } }'
PENDING
COMPLETED
CANCELLED
FAILED
REFUND
{ "message": "Ordem criada com sucesso", "order": { "id": "ord_67890fghij", "paymentLinkId": "pmt_12345abcde", "value": 150.00, "status": "PENDING", "qrCodeLink": "https://server.cryptouse.com.br/qrcode/pmt_12345abcde.png", "link": "https://pay.cryptouse.com/binance/pmt_12345abcde", "createdAt": "2023-04-20T15:00:00Z" } }