Payment system
The payment providers an account can pay through, and what a given payment would cost.
A payment system is a provider the account can pay through. The list operation reports which are available and how each is configured, and the estimate operation reports what a given payment would actually cost, including any provider fee, before the user commits to it.
Payment system settings object
API actions
API base path: /payment_system.
Operations that list no errors of their own return only the general error codes.
Required sub-user rights: payment_create.
List the payment systems available to the current user.
Only systems enabled for the user's dealer and allowed for the user's legal type are returned, so an account with none configured gets an empty list rather than an error.
Callable with an empty body. Also accepts GET.
Requires the payment_create right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
Available payment systems
true if request finished successfully.
trueBad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error response object
POST /v2/payment_system/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"list": [
{
"type": "text",
"url": "text",
"account": "text",
"currency": "text",
"payment_code": "text",
"subscription_code": "text",
"methods": [
"text"
],
"min_payment": 1,
"max_payment": 1,
"auto_payments_enabled": true,
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
}Errors
These errors come in addition to the general error codes:
201 - Not found in the database.
Required sub-user rights: payment_create.
Return an estimate of the monthly payment amount for the current user.
Callable with an empty body. Also accepts GET.
Requires the payment_create right.
Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.
The estimate
true if request finished successfully.
trueEstimated payment amount, rounded up to hundreds for rubles and to tens for other currencies.
Bad request. The response body carries the API-level error code in status.code. Validation failures also include an errors array naming each offending parameter.
Error response object
POST /v2/payment_system/estimate/get HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
"success": true,
"value": 1
}Last updated
Was this helpful?