Update Usage-Based Charges
POST
v1/managers/market/apps/plans/subscription-chargeThis endpoint allows app partners to update the outstanding balance for their app's usage-based plan, ensuring flexible billing adjustments to align with merchants' pay-as-you-go consumption.
Subscription.read_write
- Subscription Read & Write
:::info[]
You can update charges up to twice per 30-day billing cycle
:::
Request
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
Preferred language for the response. Defaults to en
if not specified.
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.
The Media Type of the body of the request. This is used to describe the structure of the data in the body.
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.
The amount to be charged for the subscription.
An object containing descriptions in different languages.
The Arabic description of the charge.
The English description of the charge.
{
"amount": 100,
"description": {
"ar": "الوصف بالعربي",
"en": "english description"
}
}
Request samples
Responses
Indicates the status of the API response.
Contains detailed information about the response message.
The type of the message.
The code associated with the message.
The name of the message.
A detailed description of the message.
{
"status": "success",
"message": {
"type": "success",
"code": "",
"name": "",
"description": "Subscription charge was updated successfully"
}
}