Construct Your Subscription Creation Script

For each subscription record that you exported from your former subscription provider, your script must submit an API request to create a new Recurring Billing subscription in the
Cybersource
system.
  1. For each subscription, instructions in your script must:
  2. Create the subscription creation request message with the required
    REST
    API fields.

    ADDITIONAL INFORMATION

    ADDITIONAL INFORMATION

  3. Send the message to one of these endpoints:
    • Production:
      POST
      https://api.cybersource.com
      /rbs/v1/subscriptions
    • Test:
      POST
      https://apitest.cybersource.com
      /rbs/v1/subscriptions
  4. Check the response messages to verify that the request was successful.

    ADDITIONAL INFORMATION

    A 200-level HTTP response code indicates success. See the
    Transaction Response Codes
    .
  5. Write the request and response information to the log file for troubleshooting and verification purposes.
  6. For transaction errors, perform error handling and retry logic when appropriate.