# Cancel SMS

To cancel the sms, replace the bold text (Order ID) with your ID for the sms you want to cancel.

  • Host: https://api.contasinfinity.com.br/api/v1/sms/cancel/ Order ID
  • Method HTTP: GET
  • Headers:
    • Accept: application/json
    • Authorization: Bearer YOUR_API_KEY

# Response: STATUS 200 OK

{
    "message": "SMS was canceled successfully!"
}

# Possible mistakes when cancel SMS

# 1. Order not found: STATUS 200

This error occurs when the ORDER ID is not found.

 {
     "message": "order id not found."
 }

# 2. Unable to cancel SMS: STATUS 200

   {
       "message": "It is not possible to cancel this SMS."
   }

This error occurs when:

  • You have already received the SMS.
  • Timeout has expired.
  • Due to an internal system error.