This 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.
You can update charges up to twice per 30-day billing cycle
Request
Header Params
Accept
string
required
Specifies the Media Types acceptable for the client. In this case, it signals that the client expects a response in the JSON format.
Example:
application/json
Accept-Language
string
optional
Preferred language for the response. Defaults to en if not specified.
Example:
en
X-Manager-Token
string
required
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.
Example:
application/json
Authorization
string
required
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.
Contains information related to the charge that was updated.
id
string
required
The unique identifier of the updated usage-based charge.
Example:
9eaac8b0-3530-4bdb-b2fb-34b4efe22179
message
object
required
Contains detailed information about the response message.
type
string
optional
The type of the message.
Example:
success
code
string
optional
The code associated with the message.
Example:
" "
name
string
optional
The name of the message.
Example:
" "
description
string
optional
A detailed description of the message.
Example:
Subscription charge was updated successfully
Example
{"status":"object","charge":{"id":"9eaac8b0-3530-4bdb-b2fb-34b4efe22179"},"message":{"type":"object","code":null,"name":null,"description":"Subscription charge was updated successfully"}}