Skip to main content

API reference

The Partner API is a JSON over HTTPS API. Every route is under /partner/v1 and every field is camelCase.

Base URL​

EnvironmentBase URL
Sandboxhttps://gateway.sandbox.rynopay.io/api
Productionhttps://prod.rynopay.io/api

A full route is the base URL plus the endpoint path, for example https://gateway.sandbox.rynopay.io/api/partner/v1/business-profiles.

Authentication​

Send an access token from the token endpoint on every request.

Authorization: Bearer <access_token>

GET routes need the partner.read scope. POST and PATCH routes need partner.write. See Scopes.

Resources​

Responses​

A successful response wraps the result in value.

{
"isSuccess": true,
"error": { "code": "", "description": "", "type": 0 },
"value": { }
}

Read value when isSuccess is true. Ignore error on success.

Errors​

A failed request returns an RFC 7807 problem response. Branch on code. The title and detail text can change.

{
"type": null,
"title": "Resource not found",
"status": 404,
"detail": "Business customer with ID '...' not found",
"code": "Customer.NotFound",
"traceId": "0HN..."
}

Include traceId when you contact support.

A field that fails validation returns 400 with code ValidationControl.Error. Every field message is joined into error.description.

{
"isSuccess": false,
"error": {
"code": "ValidationControl.Error",
"description": "Website is required; Registration number must not exceed 50 characters",
"type": 0
},
"value": null
}

A few query parameters are checked before your request reaches the API. They return { "statusCode": 400, "message": "...", "errors": { "<field>": ["..."] } }. Treat it the same way.

Common errors​

These can come from any endpoint. Each endpoint page lists its own errors.

CodeHTTPMeaning
401The token is missing, invalid or expired. Request a new one.
403The token lacks the scope this route needs.
429Rate limit exceeded. See Rate limits.
Partner.NotAuthenticated401The token has no partner identity. Contact support.
Partner.NotFound404Your partner account no longer exists. Contact support.
Partner.NotApproved409Your partner account is not approved to onboard customers yet.
Partner.NotAuthorized403The customerId belongs to another partner. Do not retry.
Customer.NotFound404No customer you own matches this id.
Customer.NotBusiness400The id is not a business customer. Contact support.
ValidationControl.Error400A request field is invalid. Fix it using error.description.

Gateway errors for 401, 429 and 503 use a different body. See Errors.