> For the complete documentation index, see [llms.txt](https://docs.mburger.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mburger.cloud/api-docs-1/integrations-extensions/inapp/inapp-subscription.md).

# InApp Subscription

{% hint style="info" %}
How to create a new iOS/Android subscription for the logged user
{% endhint %}

{% tabs %}
{% tab title="Request" %}
`POST https://mburger.cloud/api/subscriptions-in-app`

```bash
curl https://mburger.cloud/api/subscriptions-in-app
-X POST
-H "Accept: application/json" 
-H "X-MBurger-Token: <token>" 
-H "X-MBurger-Version: 3"
-H "Authorization: Bearer <JWT>"
-d '<data>' 
```

#### &#x20;Parameters

| Name         | Type   | Required | Description                                                 |
| ------------ | ------ | -------- | ----------------------------------------------------------- |
| os           | string | Yes      | The client platform. Available values are *ios*, *android*. |
| subscription | string | Yes      | The subscription identifier.                                |
| receipt      | string | Yes      | The receipt provided by mobile stores.                      |
| {% endtab %} |        |          |                                                             |

{% tab title="Response" %}
When successful, a HTTP 200 and JSON like this is returned:

```bash
{
  "status_code": 0
}
```

{% endtab %}
{% endtabs %}
