Overview

The conventions every Rasto Business endpoint follows, and where to find each one documented.

The Rasto Business API is REST over HTTPS, with JSON request and response bodies. Every endpoint in the reference follows the conventions on this page.

export BASE=https://sandbox.rasto.co
export KEY=sk_test_...

curl -s $BASE/api/customers -H "Api-Key: $KEY"

There are no SDKs yet. The OpenAPI spec behind this reference is generated from the API's own schema, so you can generate a client from it; check the generated code against these pages for the rules a schema cannot express, such as sending amounts as strings.

The conventions

ConventionRuleDetail
AuthenticationApi-Key header on every requestAuthentication
EnvironmentsTwo hosts, two key prefixes, partitioned dataEnvironments
VersioningOptional Api-Version header, ISO date. Omitting it pins the oldest supported versionEnvironments
IdempotencyIdempotency-Key required on every POST /api/*Idempotency
ErrorsOne envelope with a coarse kind and a specific code. Branch on codeErrors
StatusesStable vocabulary, and a webhook for each decision you act onStatuses and lifecycles
PaginationCursor based, limit 1 to 100, default 25Pagination and filtering
AmountsDecimal strings. Rates in basis pointsAmounts and precision

Every partner route lives under /api/*. Account-level setup, including API keys and your own onboarding, happens in the dashboard and is not part of the API. See Authentication.

Naming rules

  • Discriminator fields are always kind, never type. A customer's kind, a destination's kind, an event's kind.
  • Money values are decimal strings in the currency's major units, never floats and never smallest-unit integers.
  • Rates are basis points, never percent. 100 means 1%.
  • Bank details use native vocabulary: account_number and routing_number for USD. There is no generic account identifier field.
  • Ids are opaque strings with a stable prefix (cus_, va_, txn_). Do not parse them and do not assume a length: store them in a column of at least 40 characters. The prefix tells you in a log which object an id refers to. For the full list, see Objects and terminology.

Objects and envelopes

Single resources return the object directly, with an object field naming its kind:

{"id": "cus_033y1FhTOmoW9W2jAuSvQx", "object": "customer", "kind": "individual"}

Lists return a fixed wrapper:

{"data": [], "has_more": false, "next_cursor": null}

Webhook payloads carry the same objects. data.object inside an event has the shape the matching GET returns, as of the moment the event fired, so one model serves both.