sales

Validates promo code and calculate final pricing

Validates promo code and calculate final pricing

get/sales/v1/orders/preview

Request

  • Base URL: https://api.beamcheckout.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.beamcheckout.com/sales/v1/orders/preview
  • Auth: OAuth 2 (implicit, authorization URL "")

Query parameters

numberOfItemsstring required

numberOfItems

promoCodestring

promoCode

Response

PreviewOrderResponse

discountAmountinteger

DiscountAmount is in the smallest currency unit (satang). e.g. 1 THB = 100.

grossAmountinteger

GrossAmount is the price before discount in the smallest currency unit (satang). e.g. 1 THB = 100.

isPromotionValidboolean
netAmountinteger

NetAmount is the price after discount in the smallest currency unit (satang). e.g. 1 THB = 100.

numberOfItemsinteger
pricePerUnitinteger

PricePerUnit is in the smallest currency unit (satang). e.g. 1 THB = 100.

promoCodestring

Changes

No recorded changes to this operation across all 1 revision of this API.