PUT /shop/discount-codes/{codeId}/update
Scope required: (Manage Team)
Update discount code.
Servers
- https://www.uchat.com.au/api
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
codeId |
Integer | Yes |
Discount Code Id |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
once_per_order |
Integer | No | |
start_time |
String | No | |
min_require |
String | No | |
code |
String | No | |
min_qty |
Integer | No | |
type |
String | No | |
min_price |
Number | No | |
has_usage_limit |
Integer | No | |
one_per_customer |
Integer | No | |
discount_amount |
Number | No | |
max_usage_count |
Integer | No | |
discount_percentage |
Integer | No | |
end_time |
String | No |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.