BillsBill details

Bill details

Returns the totals and items (transactions) of a specific bill, identified by its due date (YYYY-MM-DD).

Notes:

  • items may be empty.
  • Amounts are in BRL; amountUsd is 0 for domestic transactions.
curl -X GET "https://api-sandbox.contasimples.com/credit-cards/v1/bills/2024-10-22" \
  -H "Content-Type: application/json" \
  -H "Signature-Input: example_string" \
  -H "Signature: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "nationalAmount": 839.39,
  "internationalAmount": 150,
  "iofAmount": 1.36,
  "creditsAmount": 3411.55,
  "chargesAmount": 5.74,
  "items": [
    {
      "id": 123456,
      "amount": 536.67,
      "amountUsd": 0,
      "exchangeRate": 5.12,
      "purchasedAt": "2024-09-15T14:30:00.000Z",
      "title": "Compra nacional",
      "description": "FATURA PAGA",
      "operationType": "CASH_OUT",
      "maskedCardNumber": "4729********1834",
      "merchant": "Conta Simples"
    }
  ]
}
GET
/credit-cards/v1/bills/{dueDate}
GET
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer token from OAuth 2.0 client credentials. Format: Bearer TOKEN

Bearer token from OAuth 2.0 client credentials. Format: Bearer TOKEN
path
dueDatestring
Required

Bill due date in YYYY-MM-DD format. Identifies the bill.

Format: date
header
Signature-Inputstring

What was signed and the signature parameters, in the RFC 9421 format. A credential with a public key must send it on every call, reads included, or the request is refused with 401. The signature covers the @method, @path, and @query components, and also content-digest when there is a body. created and alg are required, and created is valid for 300 seconds. The full format, with examples, is in Request Signing.

header
Signaturestring

The signature of the base defined by RFC 9421, in base64, between : and under the same label used in Signature-Input, for example sig=:SGVsbG8gd29ybGQ=:. It always goes together with Signature-Input.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer token from OAuth 2.0 client credentials. Format: Bearer TOKEN

Path Parameters

dueDatestring
Required

Bill due date in YYYY-MM-DD format. Identifies the bill.

Example:
2024-10-22

Headers

Signature-Inputstring

What was signed and the signature parameters, in the RFC 9421 format. A credential with a public key must send it on every call, reads included, or the request is refused with 401. The signature covers the @method, @path, and @query components, and also content-digest when there is a body. created and alg are required, and created is valid for 300 seconds. The full format, with examples, is in Request Signing.

Signaturestring

The signature of the base defined by RFC 9421, in base64, between : and under the same label used in Signature-Input, for example sig=:SGVsbG8gd29ybGQ=:. It always goes together with Signature-Input.

Responses

nationalAmountnumber
Required

Total domestic purchases (BRL).

internationalAmountnumber
Required

Total international purchases, converted (BRL).

iofAmountnumber
Required

Total IOF (BRL).

creditsAmountnumber
Required

Total credits/refunds (BRL).

chargesAmountnumber
Required

Total charges (BRL).

itemsarray
Required

Bill items (transactions). May be empty.