POST /v1/pricing/quotes
CommerceService_Quote
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
No path or query parameters.
Request body
coupon_codestringcurrencystringcustomer_account_idstringStable SaaS customer account. When supplied, Nexus uses it for coupon limits and every downstream commercial fact instead of customer_ref.
customer_refstringcustomer_segmentsarrayDeprecated: customer segments are commercial facts resolved by Nexus from the authenticated customer account. Production requests that set this field are rejected; use a pricing simulation endpoint for overrides.
first_purchasebooleanDeprecated: first-purchase eligibility is resolved from trusted order history and cannot be asserted by a caller.
offer_idstringquantitystring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/pricing/quotes' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"offer_id": "<offer-id>",
"quantity": "1",
"customer_account_id": "<customer-account-id>",
"coupon_code": "<discount-code>",
"currency": "USD"
}'Response contract
200 · OK
adjustment_discountstringcoupon_discountstringcoupon_reservation_idstringcurrencystringcustomer_account_idstringexpires_atstringidstringquantitystringstatusstringsubtotalstringtotalstringtracearrayExpand fields
amountstringcodestringdetailstringtypestring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.