cURL
curl --request POST \ --url https://upay-sistema-api.onrender.com/api/v1/transactions \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "product": "<string>", "amountCents": 2, "paymentMethod": "PIX", "clientEmail": "[email protected]", "clientName": "<string>", "paymentLinkId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "installments": 6, "dueDate": "2023-11-07T05:31:56Z" } '
{ "message": "<string>", "transaction": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "displayId": "<string>", "product": "<string>", "amountCents": 123, "status": "<string>", "paymentMethod": "<string>", "client": {}, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Cria uma nova transação de pagamento
Chave de API obtida através do endpoint /api/credentials. Também aceita formato Bearer Token: Authorization: Bearer <api_key>
x >= 1
PIX
CREDIT_CARD
BOLETO
1 <= x <= 12
Transação criada com sucesso
Show child attributes