Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...

Headers

Idempotency-Key
string

A word of your own for this one change, up to 180 letters, digits, dots, dashes, underscores and colons. Sent again with the same key, the request is not carried out twice: the first answer comes back, with Idempotent-Replay: true.

Path Parameters

storeId
string
required

The store's ID. A key reaches the store it was made in: GET /key answers which.

Body

application/json
amount
number

How much to ask for, above zero. Left out when items is sent.

Example:

100

description
string

What it is for, up to 255 characters. The buyer sees it as the order's one line. Left out, the line is called Payment.

Example:

"Logo design deposit"

currency
string

The currency the amount is in and the buyer is charged in, as a three-letter code. Left out, the store's own.

Example:

"USD"

uses
integer
default:1

How many times the link can be paid: 1 to 1,000.

items
object[]

Products the link sells, in place of an amount: up to 50 lines.

gateways
string[]

The payment methods it may be paid with, by their names in the payment methods list. Left out, every method the store has switched on.

expiresAt
string

When it stops being payable, as a date and time, or a day (YYYY-MM-DD) for the end of that day. At least an hour from now and at most 365 days.

Example:

"2026-11-30T23:59:59Z"

dueDays
integer
default:7

In place of expiresAt: how many days it is open, 1 to 365.

Response

It worked.

success
boolean
message
unknown
code
unknown
data
object
meta
object