create order
POST
/v1/orders
order
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/orders' \
--header 'Content-Type: application/json' \
--data-raw '{
"raffleId": "a0b21c43-a1c3-455d-873e-65f5d69879d4",
"userId": "f42312f3-3c11-42c4-a921-9583969fdb01",
"quotaQuantity": 100,
"paymentMethod": "PIX",
"referral": "33d889cb-2cdc-4df2-a9f3-d4289fb52dc5",
"buyerName": "Isabel Costa",
"cpf": "25881911008",
"paymentProviderName": "pay2m",
"phone": "41998562314"
}'
Response Response Example
201 - Success
{
"id": 26,
"status": "PENDING",
"paymentMethod": "PIX",
"paymentProviderName": "pay2m",
"referral": "33d889cb-2cdc-4df2-a9f3-d4289fb52dc5",
"priceByQuota": "9.95",
"quotaQuantity": 150,
"totalValue": "1492",
"createdAt": "2025-01-02T16:29:47.569Z",
"qrCodeId": "F09D23261985855B6D841887F7C7EE8D71E",
"qrCodeContent": "00020101021226860014br.gov.bcb.pix2564qrcode.fitbank.com.br/QR/cob/F09D23261985855B6D841887F7C7EE8D71E5204000053039865802BR5925PAY2M SOLUCOES FINANCEIRA6005Natal61085906439062070503***630485FC"
}
Request
Body Params application/json