CloudPark CloudPark Integration API

You call CloudPark

Tax Integration (RPS) RPS

For those who issue the service invoice (NFS-e) in their own system: download the RPS of a period, with amount, payment method and customer tax ID.

What it is for

Normally CloudPark issues the parking lot's service invoice (NFS-e, the Brazilian electronic service invoice). This integration is for when your system issues the invoices: you download the RPS (provisional service receipts) generated by the parking lot in a period, with amount, payment method and the customer's CPF/CNPJ (Brazilian individual or company tax ID), and issue the NFS-e yourself.

The integration must be enabled at the parking lot by CloudPark support. Without it, the API responds 403.

List the RPS of a period

GET/api/v1/integration/rps?start_date={inicio}&end_date={fim}&page=1&limit=100
FieldTypeDescription
start_daterequired string (query) Start of the period: YYYY-MM-DD (from the start of the day) or date and time, such as YYYY-MM-DDTHH:MM:SS. See the accepted formats below.
end_daterequired string (query) End of the period: YYYY-MM-DD (until the end of the day) or date and time, in the same format.
pageoptional integer (query) Page, starting at 1. Default: 1.
limitoptional integer (query) RPS per page, from 1 to 100. Default and maximum: 100.

Accepted formats for start_date and end_date:

  • date only: 2026-11-01 (start of the day in start_date, end of the day in end_date);
  • date and time, with T or a space: 2026-11-01T08:00:00 or 2026-11-01 08:00:00; seconds are optional (2026-11-01T08:00) and may have fractions (08:00:00.5);
  • with time zone: 2026-11-01T08:00:00-03:00 or 2026-11-01T11:00:00Z. In the URL, encode the + of a positive offset as %2B.

Without a time zone, date and time are read in the time of the server you called: on the cloud address, Brasília time; on the local address, the time of the parking lot's server. To avoid depending on this, send the time zone.

The RPS come in issue order. To download the whole period, follow meta.next_page until it is null.

curl "https://sandbox.cloudpark.com.br/api/v1/integration/rps?start_date=2026-11-01&end_date=2026-11-30&page=1&limit=100" \
  -H "Authorization: Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
import requests

BASE_URL = "https://sandbox.cloudpark.com.br/api/v1/integration"
HEADERS = {"Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"}

all_rps, page = [], 1
while page:
    response = requests.get(
        f"{BASE_URL}/rps",
        params={"start_date": "2026-11-01", "end_date": "2026-11-30", "page": page, "limit": 100},
        headers=HEADERS,
        timeout=60,
    )
    response.raise_for_status()
    data = response.json()
    all_rps.extend(data["rps_data"])
    page = data["meta"]["next_page"]  # None on the last page
print(len(all_rps), "RPS")
const BASE_URL = "https://sandbox.cloudpark.com.br/api/v1/integration";
const headers = { "Authorization": "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b" };

const allRps = [];
let page = 1;
while (page) {
  const params = new URLSearchParams({ start_date: "2026-11-01", end_date: "2026-11-30", page, limit: 100 });
  const data = await (await fetch(`${BASE_URL}/rps?${params}`, { headers })).json();
  allRps.push(...data.rps_data);
  page = data.meta.next_page; // null on the last page
}
console.log(allRps.length, "RPS");
Response 200
{
  "rps_data": [
    {
      "id": "721458963214587937",
      "serie": "S01",
      "rps": "721458963214587937",
      "datetime": "2026-11-20T13:15:00Z",
      "payment": {"kind": "MONEY", "value": 37.9},
      "cpf_cnpj": null
    },
    {
      "id": "721458963214588065",
      "serie": "S02",
      "rps": "721458963214588065",
      "datetime": "2026-11-21T01:00:00Z",
      "payment": {"kind": "DEBIT", "value": 109.5, "card_type": "Master", "auth_code": "Z8K4P7Q2"},
      "cpf_cnpj": "12345678901"
    }
  ],
  "count": 251,
  "meta": {
    "page": 1,
    "limit": 100,
    "pages": 3,
    "has_next": true,
    "has_prev": false,
    "next_page": 2,
    "prev_page": null
  },
  "start_date": "2026-11-01",
  "end_date": "2026-11-30"
}

Fields of each RPS

FieldTypeDescription
id string RPS identifier. A number with up to 19 digits, sent as a string.
serie string RPS series. Each source (cashier, self-service payment kiosk, cloud) has its own series, so the numbering does not collide.
rps string RPS identifier: it is the same value as id, not the RPS sequence number within the series.
datetime date/time Issue date and time, in ISO-8601 with time zone (Z = UTC).
payment.kind string Payment method: MONEY (cash), CREDIT (credit card), DEBIT (debit card), PIX, SemParar (toll tag). May be null for other payment methods.
payment.value number Amount, in reais.
payment.card_type string Card brand (credit and debit only, when available).
payment.auth_code string Card authorization code (credit and debit only, when available).
cpf_cnpj string The customer's CPF (11 characters) or CNPJ (14 characters), without punctuation, or null. The CNPJ may contain letters (alphanumeric CNPJ).

Page fields

FieldTypeDescription
count integer Total number of RPS in the period.
meta.page / meta.pages integer Current page and total number of pages.
meta.next_page / meta.prev_page integer Next and previous page; null when there is none.
start_date / end_date string The queried period, as sent.

Errors

HTTPWhen it happensResponse
400 start_date or end_date is missing. {"detail": "Parâmetros 'start_date' e 'end_date' são obrigatórios."}
400 Date in the wrong format. {"detail": "Formato inválido. Use YYYY-MM-DD ou YYYY-MM-DDTHH:MM:SS."}
401 Token missing or invalid. {"detail": "Token inválido."}
403 The tax integration is not enabled at the parking lot. {"detail": "Integração fiscal desabilitada."}
404 page beyond the last page. {"detail": "Página inválida."}

Test data (sandbox)

The sandbox generates sample RPS for any valid period (677 by default), with every payment method. To test different volumes, send the extra parameter total (sandbox only), e.g. &total=250; the sandbox returns total minus 123 RPS.

FAQ

How often should I query?

Once a day, for the previous day, is usually enough. Avoid querying the same period several times during the day.

Do cancelled RPS show up?

Yes. The lookup returns every RPS issued in the period, including cancelled ones, with no field that shows the cancellation. Agree with the parking lot on how to handle cancellations, and check with it before issuing the NFS-e for an RPS that looks unusual.

Try it on the sandbox

Send the real request to the sandbox and see the response right here. Pick a test scenario or edit the fields; the test token is already filled in.

GET
List the RPS of a period/api/v1/integration/rps