OppiziDeveloper
API ReferencePricing

Price a draft before submitting

GET
/client/campaigns/{id}/cost-preview

What a draft would cost if you submitted it as it stands: quantity, price per piece, subtotal, tax and total — the same running estimate the Oppizi builder shows.

Read-only: it prices the draft without changing it.

Authorization

ClientBearer
AuthorizationBearer <token>

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

In: header

Path Parameters

id*string

Numeric campaign id (must belong to the calling key’s client).

Response Body

application/json

curl -X GET "https://example.com/client/campaigns/string/cost-preview"
{  "success": true,  "data": {    "campaignId": "9114",    "clientId": "450",    "channel": "EDDM",    "subtype": "EDDM",    "format": "BEST_SELLER",    "quantity": 1706,    "perPiece": 0.4941,    "subtotal": 842.93,    "tax": 0,    "totalCost": 842.93,    "currency": "$",    "isEstimate": true,    "note": null  }}
Empty
Empty
Empty
Empty
Empty