cURL
curl --request POST \ --url {schemes}://api.upsun.com/organizations/{organization_id}/vouchers/apply \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "<string>" } '
{ "error": "<string>" }
Applies a voucher for the specified organization, and refreshes the currently open order.
A valid request URL is required to generate request examples
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The ID of the organization.
The voucher code.
No Content
Was this page helpful?