Authorization token and the merchant from their X-Manager-Token. Do not send an app id.subscription_status before treating it as current.subscription is returned empty ("subscription": []) when the merchant has not activated a plan. Installing your app is not enough on its own: the merchant has to activate a free plan, start a trial, or pay for a plan before a subscription exists. An app with no plans will always return empty here, so this endpoint cannot be used to confirm an installation — use the app.market.application.install event for that.pending_charges, settled_charges and charges are returned only when is_usage_based is 1. On a free or recurring plan they are not in the response at all.pending_charges — the outstanding charge's amount in SAR, covering a charge that is either pending or overdue. 0.0 when there is none.settled_charges — the total of every charge paid on this subscription, in SAR, for its whole lifetime.charges — the 10 most recent charges, newest first. Older charges are not returned, so do not rely on this list for complete billing history.amount is in SAR — for example 345.00amount_details.amount is in halalas — for example 34500amount_details is returned empty when the amount is zero. Its currency reflects the store's currency, which is not always SAR.plan_id, plan_type, store_uuid, and any trial information. In particular:store_uuid from webhook events, you cannot match that against this response — it only carries the numeric store_id. Store both.start_date plus the trial length you set on the plan.curl --location 'https://api.zid.sa/v1/market/app/subscription' \
--header 'Authorization: {{Autherization}}' \
--header 'X-Manager-Token: {{Access-Token}}' \
--header 'Accept-Language: en' \
--header 'Accept: application/json'{
"status": "object",
"subscription": {
"app_id": 2376,
"store_id": 26520,
"store_url": "https://example.zidtest.com/",
"plan_name": "1استخدام",
"subscription_status": "active",
"start_date": "2025-02-04T15:55:07.000000Z",
"end_date": null,
"merchant_phone_no": "+201063989603",
"merchant_email": "m.example@zid.sa",
"is_usage_based": 1,
"pending_charges": 100,
"settled_charges": 1,
"charges": [
{
"id": "9eaac8b0-3530-4bdb-b2fb-34b4efe22179",
"subscription_id": 333,
"amount": 300,
"amount_details": {
"amount": 34500,
"currency": "SAR",
"formatted": "ر.س 345.00"
},
"status": "pending",
"overdue_at": null,
"created_at": "2025-04-13T16:58:06.000000Z"
}
]
},
"message": {
"type": "object",
"code": null,
"name": null,
"description": "Store subscription details of the provided token"
}
}