TransactionsCard statement

Card statement

Returns card transactions for a date range. The response is paginated and includes card, category, cost center, status, and attachments.

Rules:

  • The range between startDate and endDate must not exceed 62 days.
  • limit must be between 5 and 100 per page.
  • Use nextPageStartKey to paginate (cursor).

See also: Data dictionary for field meanings; Best practices for pagination and retry patterns.

curl -X GET "https://api-sandbox.contasimples.com/statements/v1/credit-card?limit=50&startDate=2025-09-01&endDate=2025-09-30&types=%5B%22PURCHASE%22%5D&cardIds=cardId1%2CcardId2&nextPageStartKey=example_string" \
  -H "Content-Type: application/json" \
  -H "Signature-Input: example_string" \
  -H "Signature: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "transactions": [
    {
      "id": "example_string",
      "operation": "CASH_IN",
      "transactionDate": "2025-09-15T14:30:00.000Z",
      "status": "PENDING",
      "isCanceled": true,
      "type": "PURCHASE",
      "merchant": "example_string",
      "amountBrl": 150.75,
      "exchangeRateUsd": 0,
      "card": {
        "id": "example_string",
        "maskedNumber": "example_string",
        "responsibleName": "John Doe",
        "responsibleEmail": "user@example.com",
        "type": "VIRTUAL"
      },
      "category": {
        "id": "example_string",
        "name": "Food & dining"
      },
      "costCenter": {
        "id": "example_string",
        "name": "Marketing"
      },
      "isConciled": true,
      "installment": 1,
      "attachments": [
        {
          "id": "example_string",
          "name": "receipt.pdf",
          "type": "image/jpeg",
          "_links": {
            "content": {
              "href": "/attachments/v1/content/{id}",
              "rel": "GET"
            }
          }
        }
      ],
      "notes": "example_string"
    }
  ],
  "nextPageStartKey": "example_string"
}
GET
/statements/v1/credit-card
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
query
limitinteger
Required

Maximum number of transactions per page. Min: 5, max: 100.

Min: 5 • Max: 100
query
startDatestring
Required

Start of the date range (YYYY-MM-DD). The full range may not exceed 62 days.

Format: date
query
endDatestring
Required

End of the date range (YYYY-MM-DD). The full range may not exceed 62 days.

Format: date
query
typesarray

Optional filter by transaction type(s).

query
cardIdsarray

Optional filter by card ID(s) (comma-separated).

query
nextPageStartKeystring

Opaque pagination token from the previous response. Pass it back unchanged to fetch the next page.

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

Query Parameters

limitinteger
Required

Maximum number of transactions per page. Min: 5, max: 100.

Example:
50
startDatestring
Required

Start of the date range (YYYY-MM-DD). The full range may not exceed 62 days.

Example:
2025-09-01
endDatestring
Required

End of the date range (YYYY-MM-DD). The full range may not exceed 62 days.

Example:
2025-09-30
typesarray

Optional filter by transaction type(s).

cardIdsarray

Optional filter by card ID(s) (comma-separated).

Example:
cardId1,cardId2
nextPageStartKeystring

Opaque pagination token from the previous response. Pass it back unchanged to fetch the next page.

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

transactionsarray
Required

Transactions in the requested range.

nextPageStartKeystring

Next page token. If absent, there is no next page. Pass to nextPageStartKey.