A payment link for an unpaid order

Returns the open payment link of an unpaid one-time order, or opens a new one when the last expired. 409 invalid_state_transition when the order is paid, closed or past its payment window; 404 when it is not this account's. Needs the Idempotency-Key header.

post/api/v1/orders/{orderId}/checkout

Request

  • Base URL: https://ipmusk.com
  • URL: https://ipmusk.com/api/v1/orders/{orderId}/checkout
  • Auth: HTTP bearer

Path parameters

orderIdstring required

Headers

Idempotency-Keystring required

A unique value per logical request (8-128 of A-Z a-z 0-9 . _ : -). Retrying with the same value returns the first result.

Request body

provider'stripe' | 'paypal' | 'infini'

Payment provider for the link. Default: the first one this deployment offers.

Response

A payment link for an unpaid order

request_idstring required

Changes

No recorded changes to this operation across all 1 revision of this API.