Criar transação - Autorização Direta
Em desenvolvimento
POST
https://api.paylogos.com.br/v1/transactions
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.paylogos.com.br/v1/transactions' \
--header 'Content-Type: application/json' \
--data-raw '{
"description": "string",
"payment_type": "credit",
"capture": "true",
"reference_id": "10902",
"source": {
"usage": "single_use",
"amount": 700,
"currency": "BRL",
"type": "card",
"card": {
"card_number": "string",
"holder_name": "string",
"expiration_month": "string",
"expiration_year": "string",
"security_code": "string"
},
"installment_plan": {
"number_installments": 5
}
}
}'
Response Response Example
201 - Exemplo 1
{
"id": "string",
"status": "succeeded",
"resource": "string",
"amount": "string",
"original_amount": "string",
"currency": "string",
"description": "string",
"payment_type": "string",
"transaction_number": "string",
"sales_receipt": "string",
"on_behalf_of": "string",
"statement_descriptor": "string",
"payment_method": {
"id": "string",
"resource": "string",
"description": "string",
"card_brand": "string",
"first4_digits": "string",
"last4_digits": "string",
"expiration_month": "string",
"expiration_year": "string",
"holder_name": "string",
"is_active": true,
"is_valid": true,
"is_verified": true,
"customer": "string",
"fingerprint": "string",
"uri": "string",
"metadata": {},
"created_at": "string",
"updated_at": "string"
},
"refunded": true,
"voided": true,
"captured": true,
"fees": "string",
"fee_details": {
"amount": "string",
"prepaid": true,
"currency": "string",
"type": "string",
"description": "string"
},
"uri": "string",
"metadata": {},
"expected_on": "2019-08-24T14:15:22Z",
"created_at": "2019-08-24T14:15:22Z",
"updated_at": "2019-08-24T14:15:22Z"
}
Requisição
Parâmetros Bodyapplication/json
Respostas
Modificado em 2025-06-06 19:28:56