Our API allows users to purchase shipping credits, which are required for creating shipments using OTO delivery options without a contract. This guide explains how to buy shipping credit using the buyShippingCredit
endpoint.
Instructions
Step 1: API Endpoint
- To purchase shipping credit, use the following POSTendpoint:
Step 2: Authorization
- A valid Bearer Token must be included in the request headers for authentication
Step 3: Request Body Parameters
- The request body should be in JSON format and include the following field:
Field Name | Required | Type | Description |
---|---|---|---|
amount | Yes | Number | The amount of credit to be purchased. |
Step 4: Example Request
Using cURL:
Step 5: Example Response
- A successful response will return a payment URL, allowing the user to complete the transaction:
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article