return_url
property to ensure the merchant is redirected after accepting the charge (an invalid or missing return_url
property may lead to unstable behaviour in the charge approval flow).curl --location --request POST 'https://demo.myshopify.com//admin/api//recurring_application_charges.json'
{
"recurring_application_charge": {
"id": 1029266949,
"name": "Super Duper Plan",
"api_client_id": 755357713,
"price": "10.00",
"status": "pending",
"return_url": "http://super-duper.shopifyapps.com/",
"billing_on": null,
"created_at": "2023-01-03T13:06:35-05:00",
"updated_at": "2023-01-03T13:06:35-05:00",
"test": null,
"activated_on": null,
"cancelled_on": null,
"trial_days": 5,
"trial_ends_on": null,
"decorated_return_url": "http://super-duper.shopifyapps.com/?charge_id=1029266949",
"confirmation_url": "https://jsmith.myshopify.com/admin/charges/755357713/1029266949/RecurringApplicationCharge/confirm_recurring_application_charge?signature=BAh7BzoHaWRpBAVeWT06EmF1dG9fYWN0aXZhdGVU--9b5c79476bf6e10095d51a27255892c04e5dd4fa"
}
}