API reference · Types
CreateBuyerOrderChangeRequestBody
Part of the request body of POST /sandbox/orders/{orderId}/change-requests.
Type: object
Example
{
"kind": "address_change",
"payload": {
"address": {
"line1": "555 Granville St",
"line2": "Unit 4",
"city": "Vancouver",
"province": "BC",
"postal_code": "V6C 1T2",
"country": "CA"
}
}
}Fields
kindstring requiredConstraints: allowed values:
cancel_lines,address_changeExampleaddress_changepayloadobject requiredConstraints: additional properties are not allowed
Show child fieldsHide child fields
payload.array of object conditionallines Required when
kindiscancel_lines. The subset at the (order × SKU) grain the termination commands use;quantityomitted means the line’s whole remaining quantity, a smallerquantityremoves that many units. Every remaining unit at once is the full-order termination: the BUYER may ask for it (the seller still grants or declines), the SELLER may not - their full cancel is unilateral, so they run it directly.Constraints: minimum items: 1
Show child fieldsHide child fields
payload.stringlines[]. lineRef The purchase-line ref (
oln_…) of the order line this entry names, read from the order's own lines. Name a line bylineRefor byskuId;lineRefis needed only when the SKU is on more than one line the command can still act on.Constraints: pattern:
^oln_[0-9a-f]{32}$payload.integerlines[]. skuId The SKU of the order line this entry names. Name a line by
skuIdor bylineRef. When the SKU is on more than one line the command can still act on, the command answersORDER_LINE_AMBIGUOUSwith the candidatelineRefs; name the line by one of them. Supply exactly one oflineRefandskuId.Constraints: exclusive minimum: 0
payload.integerlines[]. quantity The number of units.
Constraints: exclusive minimum: 0
payload.object conditionaladdress Required when
kindisaddress_change.Constraints: additional properties are not allowed
Show child fieldsHide child fields
payload.string requiredaddress. line1 The street address.
Constraints: minimum length: 1; maximum length: 255 Example
555 Granville Stpayload.string or nulladdress. line2 The unit, suite, or second address line, if supplied.
Constraints: maximum length: 255 Example
Unit 4payload.string requiredaddress. city The city in the shipping address.
Constraints: minimum length: 1; maximum length: 255 Example
Vancouverpayload.string requiredaddress. province The Canadian province or territory in the delivery address.
Example
BCpayload.string requiredaddress. postal_code The Canadian postal code in the delivery address.
Example
V6C 1T2payload.string requiredaddress. country Constraints: allowed values:
CAExampleCA
messagestringAn optional note threaded on the ticket the request rides.
Constraints: minimum length: 1; maximum length: 10000