Skip to main content

Recurring Orders

The feature will enable subscriptions and other recurring purchases through Checkout. Recurring orders are based on a unique token that is created when the first purchase is finalized. The token represents the customer and their chosen payment method which are used to initiate additional purchases.

info

To enable the use of Recurring Orders merchants need to have this feature activated. Please contact your sales contact for more information. If recurring is true, only card and invoice payment methods will be available in the checkout.

caution

Quantity, UnitPrice, DiscountPercent, DiscountAmount and VatPercent for each order row expected to be given in minor units.

caution

If merchant utilizes shipping (nShift), recurring orders cannot be set.

HttpStatusCodes in use

Status CodeDescription
200 SuccessRequest was successful.
201 CreatedThe order was created successfully.
400 Bad RequestThe input data was invalid.
401 UnauthorizedThe request did not contain correct authorization.
403 ForbiddenThe request did not contain correct authorization.
404 Not FoundNo token with the requested ID was found.
429 Too Many RequestsToken has been used too frequently

Error messages in use

Any errors will be returned in the response header where X-SVEACHECKOUT-ERRORCODE represents the error code and X-SVEACHECKOUT-ERRORMESSAGE represents the message associated with the error.

X-SVEACHECKOUT-ERRORCODEDescription
101Missing merchant settings.
102Missing cart.
105Invalid country code.
105Invalid currency.
105Invalid article unit.
105Invalid order row type.
105Invalid locale.
107Invalid terms uri.
109Invalid confirmation uri.
108Invalid checkout uri.
110Invalid push uri.
111Invalid article number.
112Invalid VAT percentage.
113Invalid article name.
114Invalid quantity.
117Invalid unit price.
118Invalid token status.
126Invalid client order number.
135Invalid amount, cannot be less than or equal to 0.
142Invalid partner key.
151Cart limit exceeded.
156Invalid discount percentage.
202Validation callback error.
901Token does not exist.
902Invalid status change.
903Recurring order is not enabled.
904Invalid token.
905Unknown token error, please try again later.
906Throttling, token has been used too frequently.
info

For Token errors 202, 904 and 905 a new ClientOrderNumber will have to be provided when trying again.