Get Subscription Details
GET
v1/market/app/subscriptionThis endpoint enables app partners to fetch details about a merchant's app subscription, including plan, status, and billing information.
Subscription.read
- Subscription Read
Request
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
The Authorization token is a unique key given to the third-party application (Partner) by Zid. It is used to authenticate the API requests made by the Partner application. The token verifies the partner's identity and ensures they have permission to access Zid's API but does not provide any specific user or store information. It should be included in the header of API requests when the partner application needs to access Zid's API.
This token is used to authenticate and access information related to the store. It is obtained through an OAuth mechanism and is required to perform operations on the store's data. The X-Manager-Token
should be included in the header of API requests that require store-related information.
Preferred language for the response. Defaults to en
if not specified.
The User-Agent header contains information about the user agent (browser or app) making the request. It allows the server to provide a tailored response depending on the user agent's capabilities and preferences.
Unique identifier for the application.
Request samples
Responses
Indicates the status of the API response.
Contains the subscription details associated with the provided token.
Unique identifier of the subscribed application.
Unique identifier of the store associated with the subscription.
URL of the store associated with the subscription.
Name of the subscription plan in Arabic.
Current status of the subscription.
Timestamp indicating when the subscription started.
Timestamp indicating when the subscription ends.
Contact phone number of the merchant associated with the subscription.
Email address of the merchant associated with the subscription.
Indicates if the subscription follows a Usage-Based Pricing model. 1 for true (usage-based), 0 for false (fixed pricing).
The amount of charges that are yet to be settled for the subscription.
The total amount of charges that have been successfully settled.
Contains additional information about the API response.
The type of the message.
The code associated with the message.
The name of the message.
A detailed description of the message.
{
"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": "+201089889606",
"merchant_email": "m.example@zid.sa",
"is_usage_based": 1,
"pending_charges": 100,
"settled_charges": 1
},
"message": {
"type": "object",
"code": null,
"name": null,
"description": "Store subscription details of the provided token"
}
}