Create a subscription signup link
Generates a tokenised signup link that allows a specific customer to subscribe to a plan. Use plan_code to identify the plan. The returned token can be appended to your subscribe page URL (e.g. /subscribe/{token}). The token expires after 24 hours.
Authentication
AuthorizationBearer
API key obtained from the Afternoon dashboard
Request
This endpoint expects an object.
customer_id
Customer ID
plan_code
Plan code
success_url
URL to redirect to after successful signup
back_url
URL to go back to when customer clicks Back
previous_subscription_id
Existing subscription ID to change from. If omitted, link creates a new subscription.
change_timing_mode
Required when previous_subscription_id is provided. Use “now” or “end_of_period”.
Allowed values:
cancel_now_prepaid_refund_policy
Only allowed when change_timing_mode is “now”. Controls prepaid fixed-fee refunds.
Allowed values:
Response
Signup link created
success
subscription_signup_link
request_id
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error
500
Internal Server Error
