XM

Retrieve All Shipping Methods

Path:

GET https://{baseurl}/api-shipping/shipping/all

Enables you to get all the configured shipping methods. When no shipping method is configured, a blank array is shown in the success response.

To retrieve the shipping methods based on specific criteria (such as address type, channel, and/or region), the Retrieve Available Shipping Methods API is recommended.

Headers

Content-Type : application/json

x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }

Parameters []

Sample Request

GET https://{baseurl}/api-shipping/shipping/all

Sample Response

Response Code: 200

Message: OK

Description: You will see this message when all the shipping methods are successfully retrieved.

[
{
"_id": "607ef87d22e94700087d0d92",
"addressType": [
"PO",
"Business"
],
"channel": [
12
],
"deleted": false,
"name": "muhammad Umer waheed",
"description": "12312",
"taxCode": "12",
"minimumDays": 12,
"maximumDays": 13,
"cutOffTime": 123,
"cost": 12,
"region": "CA",
"createdBy": "5fe2330c0ebbf100086392fd",
"shippingMethodId": 10105,
"createdAt": "2021-04-20T15:51:25.263Z",
"updatedAt": "2021-04-20T19:13:53.385Z",
"__v": 0
},
{
"_id": "607efdf488d9c100086ef700",
"addressType": [
"PO",
"Business"
],
"channel": [
12
],
"deleted": false,
"name": "Ryder Canada",
"description": "Trust and Speed",
"taxCode": "CA657",
"minimumDays": 1,
"maximumDays": 4,
"cutOffTime": 8,
"cost": 9,
"region": "CA",
"createdBy": "5fe160ae4e6fb2000884f84d",
"shippingMethodId": 10114,
"createdAt": "2021-04-20T16:14:44.567Z",
"updatedAt": "2021-04-20T16:14:44.567Z",
"__v": 0
},
{
"_id": "607f7bfbf9ca6c000877bb33",
"addressType": [
"PO",
"Business"
],
"channel": [
12
],
"deleted": false,
"name": "muhammad Umer waheed 2",
"description": "12",
"taxCode": "12",
"minimumDays": 12,
"maximumDays": 14,
"cutOffTime": 12,
"cost": 12,
"region": "CA",
"createdBy": "5fe2330c0ebbf100086392fd",
"shippingMethodId": 10120,
"createdAt": "2021-04-21T01:12:27.069Z",
"updatedAt": "2021-04-21T01:12:27.069Z",
"__v": 0
},
{
"_id": "607f7e6d1f50be0007a2411a",
"addressType": [
"PO",
"Business"
],
"channel": [
12
],
"deleted": false,
"name": "muhammad Umer waheed 4",
"description": "123",
"taxCode": "12",
"minimumDays": 12,
"maximumDays": 14,
"cutOffTime": 11,
"cost": 12,
"region": "CA",
"createdBy": "5fe2330c0ebbf100086392fd",
"shippingMethodId": 10127,
"createdAt": "2021-04-21T01:22:53.338Z",
"updatedAt": "2021-04-21T01:22:53.338Z",
"__v": 0
}
]

Error Code: 500

Message: Internal Server Error

Description: You will see this error when the account number is incorrect in the x-site-context (for a multi-tenent client).

Change Log

  • June - 2021

  • July - 2020 First updated