Create Subscription

The following endpoint registers a recurring billing agreement for a customer and returns the subscription in pending status. No payment method is collected at this step. The subscription is activated separately by its first payment (hosted checkout, or the Charge Subscription endpoint).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Durianpay customer ID.

amount
object
required
string
enum
required

Billing frequency unit.

Allowed:
integer
≥ 1
Defaults to 1

Multiplier for interval (3 + monthly = every 3 months). Defaults to 1.

uri
required

URL the customer is redirected to after hosted checkout.

string

Optional. Your own reference for this subscription, returned unchanged for reconciliation.

Headers
string

Optional client-supplied idempotency and tracing ID, echoed back in the response.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json