Back

Search

Search

Methods

Inventory

OrderPrintStatus
Orders

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

GET | 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=370655d0-4847-4e03-82d7-380e508aeb94&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"
}