Retrieving a Plan Code
When you specify your own plan codes, you can request the next consecutive alphabetical or numeric plan code based on the last plan code that you specified. For example, if the last plan code that you specified was
Plan104
, the system returns the code Plan105
.
Follow these steps to retrieve a plan code:
- Send the request to the Recurring Billing endpoint:Production:GET https://api.cybersource.com/rbs/v1/plans/codeTest:GET https://apitest.cybersource.test.com/rbs/v1/plans/code
- Check the response message to make sure that the request was successful. A 200-level HTTP response code indicates success.For information about response codes, seeTransaction Response Codes.
REST Example: Retrieving a Plan Code
Response to a Successful Request
1{"code": "1619310019",}
Error Response
12{"status": "NOT_FOUND", "reason": "INVALID_DATA"}