Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

ShippingService

Orders /ValidateCoupon

Allows 150 calls per minute

Response: CouponValidationResult



Validate a coupon

Parameters

NameTypeDescription
orderIdGuidOrder id
barcodeStringCoupon barcode

Example Request

The following request format is required for this method.

Endpoint URL

POST https://eu-ext.linnworks.net/api/Orders/ValidateCoupon

Headers

Connection: keep-alive
Accept: application/json
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept-Encoding: gzip, deflate
Authorization: INSERT_YOUR_TOKEN_HERE

Request Body

This is an example of the request structure. Results will vary depending on your data.

orderId=dd53057f-369f-4b7b-9ef6-7ce146f53f95&barcode=sample string 1

Response

This is an example of the response JSON. Results will vary depending on your data.

{
  "ValidationText": "sample string 1",
  "DeductVisible": true,
  "DeductText": "sample string 3",
  "BalanceVisible": true,
  "BalanceText": "sample string 5",
  "ValueText": "sample string 6",
  "DiscountType": "sample string 7"
}