Skip to main content
POST
/
order
/
estimate
Estimate order
curl --request POST \
  --url https://playground.runa.io/v2/order/estimate \
  --header 'Content-Type: application/json' \
  --header 'X-Api-Key: <api-key>' \
  --data '{
  "payment_method": {
    "type": "ACCOUNT_BALANCE",
    "currency": "USD"
  },
  "items": [
    {
      "products": {
        "type": "MULTIPLE",
        "values": [
          "AMZ-US",
          "AIRBNB-US"
        ]
      },
      "face_value": 10
    }
  ]
}'
{
  "payment_method": {
    "type": "ACCOUNT_BALANCE"
  },
  "items": [
    {
      "products": {
        "type": "MULTIPLE",
        "values": [
          "AMZ-US",
          "AIRBNB-US"
        ]
      },
      "face_value": 10,
      "price": 123,
      "discount_multiplier": 123
    }
  ],
  "currency": "GBP",
  "total_discount": 123,
  "total_price": 123
}

Authorizations

X-Api-Key
string
header
required

Headers

X-Api-Version
string

The dated version of the API, if not specified a default is used.

Body

application/json

Request for a price estimate for an order.

payment_method
object
required

Payment method for the order. Select the ACCOUNT_BALANCE you want to pay for the order from. Pay using your account balance.

items
OrderItemPriceRequest · object[]
required

List of order items for price estimation.

Required array length: 1 - 500 elements

Response

OK

Response object for a order price estimate.

payment_method
object
required

Account balance payment.

items
OrderItemDiscount · object[]
required

List of order items with price and discount.

currency
enum<string>
required

Currency of the reward link. An enumeration.

Available options:
USD,
GBP,
EUR,
CAD,
AUD,
CHF,
CNY,
CZK,
DKK,
HUF,
JPY,
MXN,
NOK,
NZD,
PLN,
RON,
SEK,
SGD,
ZAR
Example:

"GBP"

total_discount
number
required

Total discount on the entire order.

total_price
number
required

Total price of the entire order.

I