v1

latestOpenAPI 3.0.12026-07-242871595.3 MB
ORDERS

Create a discount on a line item

Creates a discount on a line item for an order.

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

Path parameters

mIdstring required

Merchant Id

orderIdstring required

Order Id

lineItemIdstring required

Line Item 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