API reference · Types
OrderAdditionOfferMoney
Part of the response of GET /orders/{orderId}/addition-offers, POST /orders/{orderId}/addition-offers and POST /orders/{orderId}/addition-offers/{offerRef}/withdraw and the payload of order.addition_offer.updated.
Type: object
Example
{
"currency": "CAD",
"merchandise_cents": 800,
"reference_merchandise_cents": 900,
"shipping_cents": 0,
"purchase_fee_cents": 28,
"tax_cents": 104,
"total_cents": 932,
"tax_lines": [
{
"label": "HST",
"rate": 0.13,
"amount": 104
}
]
}Fields
currencystring requiredThe ISO 4217 currency code used for monetary amounts.
Example
CADmerchandise_centsinteger requiredThe offered cards, AFTER any seller discount.
Example
800reference_merchandise_centsinteger requiredThe same cards at the seller’s listing prices; above
merchandise_centsby the discount.Example
900shipping_centsinteger requiredThe shipping DIFFERENCE over shipping already paid for this parcel. EXACTLY 0 when the combined remaining quantities still fit the shipping option already paid for - nothing extra is charged for carriage the buyer has. Otherwise it is the
shipping_upgradeoption’s price less every shipping amount this parcel has already collected, including earlier paid upgrades, so a second upgrade never re-charges the first.Example
0purchase_fee_centsinteger requiredThe buyer purchase fee at the ORIGINAL order’s frozen rate, on the discounted merchandise.
Example
28tax_centsinteger requiredExample
104total_centsinteger requiredThe EXACT amount the buyer would pay - the sum of the four components above, frozen for the offer’s whole validity period. Nothing may accept for a different figure.
Example
932tax_linesarray of object requiredShow child fieldsHide child fields
tax_lines[].string requiredlabel Example
HSTtax_lines[].number requiredrate The decimal tax rate applied to the taxable amount.
Example
0.13tax_lines[].integer requiredamount The monetary amount in minor currency units.
Example
104
Used by
GET /orders/{orderId}/addition-offers- List an order's add-on offers (not yet available) (response)POST /orders/{orderId}/addition-offers- Send or replace an add-on offer (not yet available) (response)POST /orders/{orderId}/addition-offers/{offerRef}/withdraw- Withdraw an add-on offer (not yet available) (response)order.addition_offer.updated- Add-on offer updated (not yet available) (payload)