Criar uma Transação
POST
/v1/transactions
Criar uma transação
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/transactions' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 300,
"async": false,
"capture": true,
"installments": 1,
"descriptor": "Your Descriptor",
"payment_method": "credit_card",
"card": {
"card_number": "5502091556851234",
"card_holder_name": "Luke Skywalker",
"card_expiration_date": "0333",
"card_cvv": "111"
},
"billing": {
"name": "Luke S.",
"address": {
"country": "br",
"street": "Rua 12 de Outubro",
"street_number": "220",
"zipcode": "16520970",
"state": "SP",
"city": "Bacuriti",
"neighborhood": "Centro"
}
},
"items": [
{
"external_id": "5550134",
"title": "Sabonete de Luxo",
"unit_price": 10000,
"quantity": 1,
"tangible": true
},
{
"external_id": "5550134",
"title": "Sabonete de Luxo",
"unit_price": 10000,
"quantity": 1,
"tangible": false
}
]
}'
Response Response Example
200 - Criar uma Transação
{
"id": 23,
"ip_address": "127.0.0.1",
"tid": null,
"amount": 15090,
"capture_amount": 15090,
"paid_amount": null,
"ref_id": "5992873329",
"status": "processing",
"created_at": "2022-02-02T18:05:37.000000Z",
"updated_at": "2022-02-02T18:05:37.000000Z",
"card": {
"card_id": 409902444,
"card_holder_name": "Customer Name",
"created_at": "2022-02-02T17:47:10.000000Z",
"updated_at": "2022-02-02T18:05:36.000000Z",
"card_first_digits": "0000",
"card_last_digits": "0009",
"brand": "0"
},
"pix_qr_code": null,
"pix_expiration_date": null,
"pix_additional_fields": null,
"installments": 1,
"reference_key": null,
"session": null,
"local_time": null,
"payment_method": "credit_card",
"customer": {
"id": 4642,
"external_id": "1234f",
"name": "James Bond",
"type": "individual",
"country": "br",
"email": "james@bond.com",
"birthday": null,
"phone_numbers": [
"+5511987654321"
],
"created_at": "2022-02-02T18:05:37.000000Z",
"updated_at": "2022-02-02T18:05:37.000000Z",
"documents": [
{
"id": 4563,
"type": "cpf",
"number": "47009616000"
}
]
},
"billing": {
"id": 4418,
"name": "Nome do pagador",
"created_at": "2022-02-02T18:05:37.000000Z",
"updated_at": "2022-02-02T18:05:37.000000Z",
"address": {
"street": "Alamenda Rio Negro",
"street_number": "500",
"zipcode": "06454000",
"country": "br",
"state": "sp",
"city": "barueri",
"neighborhood": "Alphaville",
"complementary": null
}
},
"items": [
{
"id": 8912,
"external_id": "123",
"title": "Nome do Produto 1",
"unit_price": 1590,
"quantity": 1,
"tangible": 1,
"category": null,
"venue": null,
"date": null,
"created_at": "2022-02-02T18:05:37.000000Z",
"updated_at": "2022-02-02T18:05:37.000000Z"
}
],
"metadata": null
}
Requisição
Parâmetros Bodyapplication/json
Respostas
Modificado em 2025-05-26 19:09:20