OppiziDeveloper
API ReferencePricing

Quote a flyer campaign

POST
/client/calculators/flyer-distribution

Prices a flyer distribution campaign from your selection — quantity, city, format and channel. No campaign needed, and nothing is saved.

A city we have no specific rate for falls back to the country rate, and the response says so.

Authorization

ClientBearer
AuthorizationBearer <token>

Client-scoped key as a Bearer JWT; always pinned to your own client.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/client/calculators/flyer-distribution" \  -H "Content-Type: application/json" \  -d '{    "countryId": null,    "flyerSize": null,    "flyerThickness": null,    "flyerQuantity": null  }'
{  "success": true,  "data": {    "currencySign": "$",    "countryId": "14",    "city": "Austna",    "matchedCity": null,    "serviceType": "h2h",    "totalAmount": 900,    "costPerFlyer": 0.18,    "complete": false,    "adjustments": [      {        "code": "INPUT_NOT_MATCHED",        "field": "city",        "requested": "Austna",        "applied": "COUNTRY_DEFAULT_PRICING",        "affects": [          "totalAmount",          "costPerFlyer"        ],        "suggestions": [          "Austin"        ],        "detail": "No pricing is configured for \"Austna\", so this uses the country default rate, not a rate for that city."      }    ],    "note": "No pricing is configured for \"Austna\"…"  }}
Empty
Empty
Empty
Empty
Empty