> For the complete documentation index, see [llms.txt](https://api.stonestepag.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.stonestepag.com/plan-subscription-api.md).

# Plan Subscription API

## PlanSubscription

<mark style="color:green;">`POST`</mark> `https://{baseurl}/customres/customer/ap/sales`

This endpoint allows you to get customer subscribed plan details.

#### Query Parameters

| Name          | Type   | Description  |
| ------------- | ------ | ------------ |
| country       | string | Country Name |
| partner\_code | string | Partner Code |
| customer\_id  | string | Customer id  |
| plan\_code    | string | Plan Code    |

#### Headers

| Name                   | Type   | Description                           |
| ---------------------- | ------ | ------------------------------------- |
| EIGER-SESSION-ID       | string | Web Service Token API Generated Value |
| EIGER-TOKEN            | string | Web Service Token API Generated Value |
| EIGER-API-REQUEST-TYPE | string | REST                                  |
| Accept                 | string | application/json                      |
| Content-Type           | string | application/json                      |

{% tabs %}
{% tab title="200 Cake successfully retrieved." %}

```
{
"status": "SUCCESS",
"requestType": "XXXXXXXXXXXXX",
"country": "XXXXXXXXXXXXX",
"partner": "XXXXXXXXXXXXX",
"plan_name": "XXXXXXXXXXXXX",
"certificate_start_date": "XXXXXXXXXXXXX",
"certificate_end_date": "XXXXXXXXXXXXX",
"coverage_status": "XXXXXXXXXXXXX",
"name": "XXXXXXXXXXXXX",
"mobile": "XXXXXXXXXXXXX",
"idnumber": "XXXXXXXXXXXXX",
"email": "XXXXXXXXXXXXX",
"dob": "XXXXXXXXXXXXX",
"message": "Success",
"errors": null
}
```

{% endtab %}

{% tab title="404 Could not find record matching this query." %}

```
{    "message": "Failed."}
```

{% endtab %}
{% endtabs %}
