Skip to content
API referenceAPI v1admin-sdk 1.1.52Search docs⌘K
API reference · Introduction
API reference

API reference

The Inkress API is JSON over HTTPS. Send a secret key or a merchant's OAuth token, get a JSON envelope back.

Base URL

EnvironmentBase URL
Testhttps://api-dev.inkress.com/api/v1
Livehttps://api.inkress.com/api/v1

Test and live use the same paths. A test key only works on the test API and a live key only on the live one.

Authentication

Send Authorization: Bearer <key> on every request.

CredentialUse it for
sk_test_…Your own server, on the test API.
sk_live_…Your own server, live.
inka_…An app acting for a merchant who installed it, within the scopes they approved.

Authentication has the details.

Responses

Every response has a state of ok or error. Successful calls put the object or list in result; creating or updating answers 201.

Statuses come back as numbers, for example an order's 1 pending and 3 paid. Each endpoint lists its values; the Node SDK turns them into words.

Errors

StatusMeaning
401The key or token is missing, wrong or revoked, or doesn't have the scope.
422A field is missing or wrong. result.reason says which.
200 with result: falseNo such object for this merchant.

Every response carries an x-request-id header. Paste it into the portal's search to open that request in Request logs. Errors has the rest.

Idempotent requests

Apps can send an Idempotency-Key header on POST, PUT and DELETE. If the same key and body come again within 24 hours, you get the first response back instead of a second order. Idempotent requests.

Endpoints

Orders
POSTCreate an order/orders
GETGet an order/orders/:id
GETList orders/orders
PUTUpdate an order/orders/:id
GETOrder status/orders/status/:id
POSTCreate a link/payment_links
GETGet a link/payment_links/:id
GETList links/payment_links
PUTUpdate a link/payment_links/:id
Checkout sessions
POSTCreate a session/checkout/sessions
GETGet a session/checkout/sessions/:id
DELETECancel a session/checkout/sessions/:id
Billing plans
POSTCreate a plan/billing_plans
GETGet a plan/billing_plans/:id
GETList plans/billing_plans
PUTUpdate a plan/billing_plans/:id
Subscriptions
POSTSubscribe a customer/billing_subscriptions/link
GETList subscriptions/billing_subscriptions
GETGet a subscription/billing_subscriptions/:id
POSTCharge now/billing_subscriptions/:uid/charge
GETCharge status/billing_subscriptions/:uid/charges/:reference
POSTCard update link/billing_subscriptions/:uid/card-update-link
GETBilling periods/billing_subscriptions/:uid/periods
Products
POSTCreate a product/products
GETGet a product/products/:id
GETList products/products
PUTUpdate a product/products/:id
Merchants
POSTSet up a business/merchants/partner-activation
POSTVouch for a merchant/merchants/:merchant_id/vouch
POSTCreate a merchant/merchants
GETGet a merchant/merchants/:id
GETList merchants/merchants
PUTUpdate a merchant/merchants/:id
Payouts
GETList payouts/financial_requests
GETGet a payout/financial_requests/:id
POSTRequest a payout/financial_requests
Webhook endpoints
POSTAdd an endpoint/webhook_urls
GETList endpoints/webhook_urls
GETGet an endpoint/webhook_urls/:id
PUTUpdate an endpoint/webhook_urls/:id
DELETERemove an endpoint/webhook_urls/:id