Get all payments
GETDescription: Retrieve payments for the authenticated user with pagination and sorting options./v1/payments
Request
Query Parameters
Default value: 1
Page number.
Possible values: <= 100
Default value: 20
Page size. Max size is 100.
Possible values: [created_at
]
Page sort attribute.
Possible values: [asc
, desc
]
Default value: asc
Page order.
Header Parameters
The nonce ID is a UUID (v4) used to uniquely identify the request. All requests must have an identifier.
Possible values: [pt-BR
, en-US
]
Indicates the preferred language. Defaults to Brazilian Portuguese if unspecified.
The product ID is a UUID (v4) used to identify the Z.ro product configuration.
The product target user ID is a UUID (v4) used to identify what user account this request must be executed. Require: x-product-uuid.
Responses
- 200
- 400
- 401
- 422
Payments retrieved successfully.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
Page number.
Page size.
Page total.
Total of elements.
data object[]required
Payment data
Payment ID
Possible values: [POS
, PDV
, MPOS
, PAYLINK
, INTEGRATION
, TAP_ON_PHONE
, VIRTUAL_TERMINAL
]
Sales channel used for the payment
Possible values: [CNP
, CP
]
Payment method (Card Present or Card Not Present)
Possible values: [DEBIT
, CREDIT
]
Payment method used
Payment value in local currency in cents
Payment value in original currency in cents
IOF (Tax on Financial Operations) amount
Currency used for the payment in local market
Original currency of the payment
Exchange rate applied to the payment
Possible values: [PENDING
, AUTHORIZED
, REVERTED
, CANCELLED
, SETTLED
]
Current payment status
Buyer full name
Buyer email address
Buyer address information
Buyer phone number
Possible values: [CPF
, CNPJ
]
Buyer document type
Buyer document number
Last four digits of the card used
Number of installments for the payment
Refund ID if payment was refunded
Chargeback ID if payment was charged back
Payment creation date
Payment last update date
Payment confirmation date
Expected settlement date
{
"page": 1,
"page_size": 20,
"page_total": 20,
"total": 100,
"data": [
{
"id": "b28163ec-3d28-4786-a154-7a28ab3600a6",
"sales_channel": "INTEGRATION",
"transaction_method": "CNP",
"payment_method": "CREDIT",
"amount_local": 1000,
"amount_original": 200,
"amount_iof": 2,
"currency_local": "string",
"currency_original": "string",
"currency_rate": 5,
"status": "AUTHORIZED",
"buyer_name": "John Doe",
"buyer_email": "john.doe@example.com",
"buyer_address": {
"street": "Main Street",
"number": 123,
"city": "São Paulo",
"federativeUnit": "SP",
"zipCode": "01234-567",
"country": "Brazil",
"neighborhood": "Downtown"
},
"buyer_phone_number": "+5511999998888",
"buyer_document_type": "CPF",
"buyer_document": "12345678901",
"card_last_numbers": "1234",
"installments": 1,
"refund_id": "b321ef4f-eb5b-40a6-b862-dc47d6861ccc",
"chargeback_id": "9c5ea602-e41a-452c-9698-ab05b761b189",
"creation_date": "2023-01-01T10:00:00.000Z",
"last_update_date": "2023-01-01T11:00:00.000Z",
"confirmation_date": "2023-01-01T12:00:00.000Z",
"expected_settlement_date": "2023-01-02T12:00:00.000Z"
}
]
}
If any required params are missing or has invalid format or type.
User authentication failed.
If any required params are missing or has invalid format or type.