v1

latestOpenAPI 3.0.12026-07-242871595.3 MB
ORDERS

Create a discount on an order

Creates a discount for an order.

post/v3/merchants/{mId}/orders/{orderId}/discounts

Path parameters

mIdstring required

Merchant Id

orderIdstring required

Order Id

Headers

User-Agentstring required

Identifies the application, operating system, vendor, and/or version of the requesting user agent. Format: <AppName>/<Version> <Comment>

Request body

idstring

Unique identifier

namestring required

Name of the discount

amountinteger

Discount amount in fraction of currency unit (e.g. cents) based on currency fraction digits supported

percentageinteger

Discount amount in percent