API Reference

Attributes

id string(36)
Unique identifier for the object.


code string(36)
Unique identifier for the object in your system.


amount integer(>0)
Amount in cents to be paid.


paidAmount integer(>0)
Amount in cents that was paid.


barcode string(64)
.


pdf string(256)
.


description string(128)
.


expiresIn integer(>0)
.



payer Payer
This object represents a payer of the payment.


split Split
This object represents a list of recipients who will receive part of the payment.


status enum
The status of the payment. Can be CREATED, PROCESSED, PAID or FAILED.

StatusDescriptionFinal Status
CREATEDIndicates that the payment was received.No
PROCESSEDIndicates that the payment was processed by provider but needs confirmation.No
ERRORIndicates that an error has occurred.Yes
PAIDIndicates that the payment was confirmed.Yes
FAILEDIndicates that the payment was not processed.Yes

createdAt datetime
Time at which the object was created.


processedAt datetime
Time at which the object was processed.


paidAt datetime
Time at which the object was paid.


failedAt datetime
Time at which the object failed.


metadata Metadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.

Example

{
  "id": "6a0b14a9-023c-4198-9ada-6e4684213340",
  "code": "40040b70-89be-40ad-ab7f-7a123cb7ab6a",
  "amount": 990,
  "paidAmount": null,
  "description": "My order",
  "expiresIn": 3,
  "barcode": "001 9 337370000000100 05009 401448 16060680935031",
  "pdf": "https://url.com",
  "payer": {
      "name": "Bruce Wayne",
      "taxId": "06516763208" 
  },
  "split": null,
  "status": "PROCESSED",
  "createdAt": "2022-06-06T11:48:21Z",
  "processedAt": "2022-06-06T11:48:26Z",
  "paidAt": null,
  "failedAt": null,
  "metadata": null
}