# Add Number to Cart

## GET or POST Request

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

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

This adds the number to your shopping cart, then you can close our your cart.&#x20;

| Argument | Required | Type |
| -------- | -------- | ---- |
| did      | yes      | int  |

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

```php
curl -X POST https://v1.api19.com/dids/cart/add \
 -d 'did=3038821111' \
 -d 'key=your-api-key'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/dids/cart/add?did=3039921111&key=apitoken
```

{% endtab %}

{% tab title="JSON Response" %}

```php
{"status":"ok"}

OR

{"status":"error", "error":"number in cart"}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apidocs.api19.com/shopping-cart-ordering/add-number-to-cart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
