Mark orders as prepaid
POST https://delivery-api.paysera.com/rest/v1/orders-prepaid
Change the status of draft orders to prepaid status.
This endpoint only works for orders currently in draft status.
Orders must be in draft status before they can be marked as prepaid.
Authorization​
This endpoint requires MAC (Message Authentication Code) authentication.
Authorization Header Format:
Authorization: MAC id="YOUR_PROJECT_ID",ts="1234567890",nonce="xyz123",mac="GENERATED_MAC_HASH"
Example:
Authorization: MAC id="a9b8c7d6e5f4g3h2", ts="1234567890", nonce="xyz123abc456def", mac="dGhpcyBpcyBhIHJhbmRvbSBtYWMgaGFzaCB2YWx1ZQ==", ext="body_hash=cmFuZG9tQm9keUhhc2hWYWx1ZQ%3D%3D"
For more details, please refer to the Authentication section.
Request Body​
| Field | Type | Required | Description |
|---|---|---|---|
order_ids | array | ✓ | Array of order IDs to mark as prepaid |
Example​
Request​
POST https://delivery-api.paysera.com/rest/v1/orders-prepaid
Content-Type: application/json
Authorization: MAC id="YOUR_PROJECT_ID",ts="1234567890",nonce="xyz123",mac="GENERATED_MAC_HASH"
{
"order_ids": [
"order123",
"order456",
"order789"
]
}
Response​
{}
AUTHORIZATION: HTTP
REQUEST
Base URL
https://delivery-api.paysera.com
Body REQUIRED
{
"order_ids": [
"order123",
"order456",
"order789"
]
}
RESPONSE
Orders successfully marked as prepaid
{}