Skip to main content
POST
/
charges
cURL
curl --request POST \
  --url http://api.contabull.com/charges \
  --header 'Content-Type: application/json' \
  --data '{
  "accountId": "<string>",
  "amountCents": 2,
  "currency": "BRL",
  "externalId": "<string>",
  "sourceKey": "<string>",
  "methods": [
    "boleto"
  ],
  "customer": {
    "name": "<string>",
    "document": "<string>",
    "type": "individual",
    "address": {
      "street": "<string>",
      "number": "<string>",
      "postalCode": "<string>",
      "complement": "<string>",
      "neighborhood": "<string>",
      "city": "<string>",
      "countryCode": "<string>",
      "state": "<string>"
    }
  },
  "taxes": {
    "fine": 123,
    "interest": 123
  },
  "dueAt": "2023-11-07T05:31:56Z",
  "expireAt": "2023-11-07T05:31:56Z"
}'
{
  "id": "<string>",
  "boleto": {
    "success": true,
    "status": "CREATING"
  },
  "pix": {
    "success": true,
    "emv": "<string>",
    "status": "CREATING"
  }
}

Body

application/json
accountId
string
required
amountCents
number
required
Required range: x >= 1
currency
enum<string>
required
Available options:
BRL,
USD,
EUR
methods
enum<string>[]
required
customer
object
required
dueAt
string<date-time>
required
externalId
string
sourceKey
string
taxes
object
expireAt
string<date-time>

Response

default - application/json
id
string
required
boleto
object
pix
object