Order Voucher
GET
v1/order-vouchers/{order_id}/Retrieves the voucher details for a specified order.
Request
This parameter specifies the number of items to be included on each page of the results.
This parameter indicates the specific page of results to retrieve.
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.
An Access Token is a unique string that represents the authorization granted to a client (Partner application) by a user (Merchant or Store Manager) to access their protected resources. It is part of the OAuth 2.0 standard and is used to authenticate API requests on behalf of the user. Access Tokens have a limited lifespan and must be used within their validity period. Once expired, a new Access Token can be obtained using a Refresh Token. Access Tokens should be treated as sensitive information and must be kept secure to prevent unauthorized access to the user's data. If you do not have an Access-Token
, but have the older alternative instead, i.e., the X-Manager-Token
, then see the instructions here on how to obtain the Access-Token
.
Role of the user.
Preferred language for the response. Defaults to en
if not specified.
Request samples
Responses
This parameter indicates the total number of items available that match the query. In this example, the value is 0, meaning there are no items that match the query.
This parameter provides the URL to the next page of results, if available. In this example, the value is null, meaning there are no additional pages of results.
This parameter provides the URL to the previous page of results, if available. In this example, the value is null, meaning there are no previous pages of results.
This parameter is a list that contains the actual items returned by the query. In this example, the list is empty ([]), indicating that no items were found that match the query criteria. If there were matching items, this list would contain objects representing each item.
{
"count": 0,
"next": null,
"previous": null,
"results": [
{}
]
}