Returns a collection with a key, ID, and link for each shipping method. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.
OK
Bad Request
{- "ia::result": [
- {
- "key": "1",
- "id": "Ground",
- "href": "/objects/accounts-receivable/shipping-method/1"
}, - {
- "key": "2",
- "id": "Air",
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - {
- "key": "3",
- "id": "Fedex",
- "href": "/objects/accounts-receivable/shipping-method/3"
}, - {
- "key": "4",
- "id": "Sea Route",
- "href": "/objects/accounts-receivable/shipping-method/4"
}
], - "ia::meta": {
- "totalCount": 4,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new shipping method object.
id required | string Name or description of the shipping method. Example: "Air" |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
daysInTransit | integer Estimated number of days to ship goods from the warehouse to the customer. Example: 10 |
Created
Bad Request
{- "id": "Air",
- "daysInTransit": 10
}
{- "ia::result": {
- "key": "2",
- "id": "2",
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified shipping method.
key required | string System-assigned key for the shipping method. Example: 2 |
OK
Bad Request
{- "ia::result": {
- "key": "2",
- "id": "Air",
- "status": "active",
- "daysInTransit": null,
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing shipping method by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned key for the shipping method. Example: 2 |
status | string Default: "active" Object status. Active objects are fully functional. Inactive objects are essentially hidden and cannot be used or referenced. Example: "active" |
daysInTransit | integer Estimated number of days to ship goods from the warehouse to the customer. Example: 10 |
OK
Bad Request
{- "daysInTransit": 15
}
{- "ia::result": {
- "key": "2",
- "id": "2",
- "href": "/objects/accounts-receivable/shipping-method/2"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a shipping method.
key required | string System-assigned key for the shipping method. Example: 2 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find shipping methods that meet certain criteria and to specify the properties that are returned.
OK