> For the complete documentation index, see [llms.txt](https://apidocs.api19.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.api19.com/numbers-ordering/toll-free-offnet.md).

# Toll Free Offnet

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/dids/tfoffnet/order>
{% endhint %}

Send us a GET or POST request with your key and the numbers (in the URI as key or as http password)

This will immediately attempt to order numbers. You can send the dids field as either a comma list of the numbers OR a json object of the numbers

| Argument | Required | Type     |
| -------- | -------- | -------- |
| dids     | yes      | int      |
| callflow | no       | int      |
| faxflow  | no       | int      |
| key      | yes      | api\_key |

{% tabs %}
{% tab title="Curl Post" %}

```php
curl -X POST https://v1.api19.com/dids/tfoffnet/order \
 -d 'dids=3038821111,3038883333' \
 -d 'callflow=444' \
 -d 'key=your-api-key'
 
OR

curl -X POST https://v1.api19.com/dids/tfoffnet/order  \
 -d 'dids=[3038821111,3038883333]' \
 -d 'callflow=444' \
 -d 'key=your-api-key'

```

{% endtab %}
{% endtabs %}

Responses

{% tabs %}
{% tab title="Success" %}

```javascript
{
    "status": "ok",
    "success": {
        "8003332222": "yes"
    },
    "errors": {
        "8883332222": "8883332222 is already in your orders",
        "3334443333": "3334443333 is not a tollfree number"
    }
}
```

{% endtab %}

{% tab title="Invalid" %}

```php
{'status': 'error', 'error':'system error'}
{
    'status' => 'error',
		'code' => 'no_numbers',
    'error' => 'No numbers found in dids'
}
{
    'status' => 'error',
    'code' => 'no_dids',
    'message' => 'Dids are required'
}
{
    'status' => 'error',
		'code' => 'invalid_json',
		'message' => 'Json in dids is invalid'
}
```

{% endtab %}
{% endtabs %}
