Create an adjustment
How to create an adjustment via API
To create a new adjustment, send a POST
request to the /api/adjustments
endpoint, passing the resource arguments in the request body.
Request
POST https://yourdomain.commercelayer.io/api/adjustments
Arguments
Body Parameter | Type | Required |
---|---|---|
type |
| Required |
attributes.name |
| Required |
attributes.currency_code |
| Required |
attributes.amount_cents |
| Required |
attributes.distribute_discount |
| Optional, default is 'true' |
attributes.reference |
| Optional |
attributes.reference_origin |
| Optional |
attributes.metadata |
| Optional |
Example
The following request creates a new adjustment:
Last updated