Skip to main content

Calculate delivery prices

PUT https://delivery-api.paysera.com/rest/v1/order-prices

Calculate delivery prices for given shipment parameters.

Use this endpoint to get price estimates before creating an order.

Authorization​

This endpoint requires MAC (Message Authentication Code) authentication.

The Authorization header must include the following parameters:

  • id: Your Project ID
  • ts: Unix timestamp
  • nonce: Unique random string
  • mac: Message authentication code (calculated hash using Project Password)

Example:

Authorization: MAC id="YOUR_PROJECT_ID",ts="1234567890",nonce="xyz123",mac="GENERATED_MAC_HASH"

For more details, please refer to the Authentication section.

Request Body​

FieldTypeRequiredDescription
project_idstring✓Project identifier
from_country_codestring✓Origin country code (ISO 3166-1 alpha-2)
to_country_codestring✓Destination country code (ISO 3166-1 alpha-2)
shipment_gateway_codestringSpecific gateway code (optional)
shipment_method_codestringSpecific method code (optional)
shipmentsarray✓Shipments to calculate prices for

Example​

Request​

PUT https://delivery-api.paysera.com/rest/v1/order-prices
Content-Type: application/json
Authorization: MAC id="YOUR_PROJECT_ID",ts="1234567890",nonce="xyz123",mac="GENERATED_MAC_HASH"
{}

Response​

{}

AUTHORIZATION: HTTP

REQUEST

Base URL
https://delivery-api.paysera.com

RESPONSE

Prices calculated successfully
{}