Stopping subscriptions

Stopping Subscriptions

If you need to STOP a subscription on behalf of an end user you should make a call to the following API:

https://payforit.txtnation.com/api/stop/?company=mycompany&password=XXXXX&transactionId=12345678901234567890

Where  transactionId is the transactionId returned to you as part of the Subscription initiated post.

One of the following HTTP codes will be returned with each response.

  • 200 OK
  • 406 Not Acceptable
  • 403 Forbidden
  • 400 Bad Request

A JSON response in the body of the result will provide you with additional details.

All successful stop requests will have the body text:  { status: 'OK' }

Error responses will have an error status along with a result parameter which will provide you with a reason for the failure. e.g.  { status: 'ERROR', result: 'Invalid transactionId' }

Please note that this will also send a notification to your  callback_url (if set) confirming the subscription conclusion (the user will also be notified by means of text message).