Buy using an existing subscription payment method

Creates a new subscription purchase using the saved payment method of sourceSubscriptionId. Specify the product plan for the new subscription with subscriptionProductPlanId. The source subscription must belong to the signed project and have a reusable payment method.

Truegate generates the new transaction ID. metadata is optional and is not signed. This creates a new purchase; it does not switch the source subscription plan.

Use the First subscription payment webhook for the payment result and Subscription activated for activation.

Request signature

Sign only these fields, in order:

projectId → sourceSubscriptionId → subscriptionProductPlanId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

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

Creates a new subscription purchase using the saved payment method of sourceSubscriptionId. Specify the product plan for the new subscription with subscriptionProductPlanId. The source subscription must belong to the signed project and have a reusable payment method.

Truegate generates the new transaction ID. metadata is optional and is not signed. This creates a new purchase; it does not switch the source subscription plan.

Use the First subscription payment webhook for the payment result and Subscription activated for activation.

Request signature

Sign only these fields, in order:

projectId → sourceSubscriptionId → subscriptionProductPlanId

See Signing requests for the HMAC-SHA-256 algorithm and code examples.

Body Params

Signed JSON request

string
required

Your project identifier.

string
required

HMAC-SHA-256 signature. Sign the fields in the order documented for this endpoint.

string
required

Existing subscription whose saved payment method will be reused. Must belong to this project.

string
required

Product plan for the new subscription.

metadata
object

Optional merchant metadata. Not included in the request signature.

Responses

Language
LoadingLoading…
Response
Choose an example:
application/json