GET API/Promotion/PromoCode?onlineOrderId={onlineOrderId}&orderId={orderId}

This API will return any promotion codes currently applied to an order or online order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
onlineOrderId

If this is for an online order, pass in the online order #. You would never need both the online order and the order id.

integer

None.

orderId

If this is for a regular order, pass in the order id. You would never need both the online order and the order id.

integer

None.

Body Parameters

None.

Response Information

Resource Description

Collection of string

Response Formats

application/xml, text/xml

Sample:
<Array1OfString>
  <String>sample 1</String>
  <String>sample 2</String>
</Array1OfString>

application/json, text/json

Sample:
[
  "sample 1",
  "sample 2"
]