# Purchase SMM

To buy an SMM, you need to keep in mind which service you want to order, you can see available services by clicking here. (opens new window).

  • Host: https://api.contasinfinity.com.br/api/v1/smm/purchase
  • Method HTTP: POST
  • Params:
    • service: 58
    • quantity: 10
    • link: contasinfinity
  • Headers:
    • Accept: application/json
    • Authorization: Bearer SUA_API_KEY

# Response: 201

{
    "message": "successfully created.",
    "id": 308226
}

# Possible mistakes when buying SMS

# 1. The service parameter needs to be filled in: STATUS 422

This error occurs when the service parameter is not filled.

{
    "message": "The given data was invalid.",
    "errors": {
        "service": [
            "The service field is required."
        ]
    }
}

# 2. The quantity parameter needs to be filled: STATUS 422

This error occurs when the quantity parameter is not filled.

{
    "message": "The given data was invalid.",
    "errors": {
        "quantity": [
            "The quantity field is required."
        ]
    }
}

This error occurs when the link parameter is not filled.

{
    "message": "The given data was invalid.",
    "errors": {
        "link": [
            "The link field is required."
        ]
    }
}

# 4. Service not found: STATUS 200

This error occurs when the service parameter is invalid.

{
    "message": "Service not found."
}

# 5. Invalid quantity: STATUS 200

This error occurs when the quantity parameter is invalid, being less than the minimum or greater than the maximum.

{
    "message": "quantity is invalid. min: 10, max: 500000"
}

This error occurs when you already have an order with this link active

{
    "message": "You have active order with this link. Please wait until order being completed."
}