Tillwire Read the guide
API reference

Subscriptions. 7 operations.

7 of them work. Each needs a bearer token with its scope. All operations.

Operations

POST/api/v1/subscriptions/{number}/cancelsubscriptions.cancelsubscriptions.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

Errors: 401, 403, 404, 405, 409, 422, 429

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}/cancel

POST/api/v1/subscriptions/{number}/changesubscriptions.changesubscriptions.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

Errors: 401, 403, 404, 405, 409, 413, 422, 429

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}/change

GET/api/v1/subscriptions/{number}subscriptions.getsubscriptions.read

Parameters

numberpathstring
numberpathstring

Errors: 401, 403, 404, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}

GET/api/v1/subscriptionssubscriptions.listsubscriptions.read

Read a page at a time: give limit (1 to 500; 100 when none is given) and after, the Next-Cursor of the page before. Follow the Link, rel next, to the rest.

Parameters

limitqueryintegerThe most subscriptions in the page: 1 to 500; 100 when the call gives no limit. The Next-Cursor and Link headers name the next page.
afterquerystringSee common parameters

Answer

array of Subscription

Errors: 400, 401, 403, 405, 422, 429

curl -X GET -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions

POST/api/v1/subscriptions/{number}/pausesubscriptions.pausesubscriptions.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

Request body

PauseRequest

Errors: 401, 403, 404, 405, 409, 413, 422, 429

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}/pause

POST/api/v1/subscriptions/{number}/resumesubscriptions.resumesubscriptions.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

Errors: 401, 403, 404, 405, 409, 422, 429

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}/resume

POST/api/v1/subscriptions/{number}/skipsubscriptions.skipsubscriptions.write

Parameters

numberpathstring
numberpathstring
Idempotency-KeyheaderstringSee common parameters

Errors: 401, 403, 404, 405, 409, 422, 429

curl -X POST -H "Authorization: Bearer $TOKEN" https://yourshop.example/api/v1/subscriptions/{number}/skip

Schemas 10

Address

Address is a postal address in its fields and on one line: the domain's address, which the store's own address will take when the operations give store details.

cityrequiredstring
countryrequiredstring
country_namerequiredstring
linesrequiredarray of string
postal_coderequiredstring
provincerequiredstring
suburbrequiredstring
textrequiredstring
Buyer

Buyer is who placed an order, as the checkout took it.

addressrequiredstring
billing_addressAddress
business_namestring
delivery_addressrequiredAddress
emailrequiredstring
namerequiredstring
phonerequiredstring
regionstring
vat_numberstring
Cadence

Cadence is how often a subscription delivers.

idrequiredstring
labelrequiredstring
Money

Money is an amount: in minor units of its ISO 4217 currency, and as the store displays it.

currencyrequiredstring
displayrequiredstring
minorrequiredinteger
PauseRequest

PauseRequest is a pause: until a date, YYYY-MM-DD in the store's time zone, from the start of that day; "" for until resumed.

untilrequiredstring
SavedCard

SavedCard is a card a gateway saved, as it described it.

brandrequiredstring
exp_monthrequiredinteger
exp_yearrequiredinteger
last4requiredstring
Subscription

Subscription is a subscription as the owner sees it.

accountrequiredstring
actionsrequiredarray of string
anchorrequiredstring (date-time)
buyerrequiredBuyer
cadencerequiredCadence
cadencesrequiredarray of Cadence
cardSavedCard
eventsrequiredarray of SubscriptionEvent
gatewayrequiredstring
next_duestring (date-time)
numberrequiredinteger
option_valuesrequiredarray of string
ordersrequiredarray of integer
periodsrequiredinteger
pricerequiredMoney
productrequiredstring
quantityrequiredinteger
resume_atstring (date-time)
skurequiredstring
statusrequiredstring
SubscriptionChange

SubscriptionChange is a subscription as an operation left it, and whether the operation changed it.

changedrequiredboolean
subscriptionrequiredSubscription
SubscriptionChangeRequest

SubscriptionChangeRequest is a change of a subscription: each field set is changed, each absent kept.

addressstring
cadencestring
quantityinteger
skustring
SubscriptionEvent

SubscriptionEvent is one change of a subscription.

actorrequiredstring
atrequiredstring (date-time)
reasonrequiredstring
statusrequiredstring

Made from engine/internal/openapi/openapi.json at commit 6c4cbd921. The contract-only operations come from the engine’s stub file, engine/internal/ops.