REST Example: Creating a Follow on Subscription from an Existing Transaction

Light Dark
Request
12345
{"subscriptionInformation": { "planId":"1619214515", "name": "SubNameFOOTPTesting", "startDate": "2023-04-15T17:01:42Z" }}
Example Response to a Successful Request
1234567891011121314151617181920
{"_links": { "self": { "href": "/rbs/v1/subscriptions/1619214861", "method": "GET" }, "update": { "href": "/rbs/v1/subscriptions/1619214861", "method": "PATCH" }, "cancel": { "href": "/rbs/v1/subscriptions/1619214861/cancel", "method": "POST" } }, "id": "1619214861", "status": "COMPLETED", "subscriptionInformation": { "code": "AWC-49", "status": "PENDING" }}
Example Response to a Failed Request
12
{"status": "NOT_FOUND", "reason": "INVALID_DATA"}