Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Payments

6 routes. Paths are relative to https://api.intersink.com/v1.

All groups

Get one

GET/payments/{id}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
idrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Create

POST/payments/create

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
Idempotency-Keystring, headerOptional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs.

Request body application/json

FieldTypeDescription
providerstringDefaults to "stripe" (served by "demo" while the demo gate is open). One of: "razorpay", "stripe", "demo".
amountrequirednumberAmount in MAJOR units (e.g. rupees / dollars). The service converts this to minor units (paise / cents) before storing and sending to the gateway. Max 2 decimal places for fiat. Minimum 1, maximum 999999.99.
currencystringISO 4217 code of a currency the platform settles (GBP, USD, EUR, INR). Ignored for an order payment: the order's own currency is charged. One of: "GBP", "USD", "EUR", "INR". At least 3 characters, at most 3 characters.
customer_namestringAt most 255 characters.
customer_emailstringAt most 255 characters.
customer_phonestringAt most 255 characters.
receiptstringAt most 255 characters.
metadataobject
return_urlstringWhere the hosted (demo) checkout sends the browser afterwards, with payment_id, status and provider appended. Must be on an allowed frontend origin. Ignored by the Stripe / Razorpay client-side flows. At most 2048 characters.

Response

201. The payload in data is of type object.

Get my

GET/payments/my

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Verify

POST/payments/verify

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
Idempotency-Keystring, headerOptional client-generated key (8-128 chars, [A-Za-z0-9_-]). A retry with the same key and body replays the first response (Idempotent-Replayed: true); 409 while the first is in flight; 422 if the body differs.

Request body application/json

FieldTypeDescription
razorpay_order_idrequiredstring
razorpay_payment_idrequiredstring
razorpay_signaturerequiredstring

Response

200. The payload in data is not described in the spec yet.

Razorpay webhook

POST/payments/webhook/razorpay

Public: no sign-in needed.

Parameters

NameTypeDescription
x-razorpay-signaturestring, header

Response

200. The payload in data is not described in the spec yet.

Stripe webhook

POST/payments/webhook/stripe

Public: no sign-in needed.

Parameters

NameTypeDescription
stripe-signaturestring, header

Response

200. The payload in data is not described in the spec yet.