Welcome to Anyway! We are currently in Early Access, check out our website at Anyway for more info!
curl --location --request POST '/v1/subscriptions/setup' \
--header 'x-org-id: {{orgId}}' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"productId": "8iq40gcl3285",
"setupSuccessUrl": "https://anyway.sh",
"setupCancelUrl": "https://failed.com",
"webhookUrl": "https://anyway.sh",
"customerEmail": "jbaker@gmail.com",
"customerFirstName": "Johnny",
"customerLastName": "Baker",
"customerCountry": "USA"
}'{
"success": true,
"message": "string",
"data": {
"records": [
{
"orderId": "string",
"productId": "string",
"productName": "string",
"productPricingType": "string",
"status": "string",
"priceAmount": 0,
"currency": "string",
"paymentMethod": "string",
"feeAmount": 0,
"createdAt": "string",
"updatedAt": "string"
}
],
"total": 0,
"size": 0,
"current": 0,
"pages": 0
},
"error": null
}