Update Shipping Configuration
Calling the endpoint
In order to get the current shipping configuration we need to make a PUT
request to the shipping-configuration
resource, pass the api key as a query parameter, and the data as payload:
curl -X PUT -d '{ "overnightShipping": 300, "groundShipping": 150, "shippingConstraints": ["CA", "AZ"] }' https://sercies.rxrise.com/api/v1/shipping-configuration?apiKey=YOUR_API_KEY
Valid Values
overnightShipping
must be a positive integer or zero.groundShipping
must be a positive integer or zero.shippingConstraints
must be an array of strings.
Response Payload​
This will return us an object with the shipping constraints, ground shipping and overnight shipping
{
"groundShipping": 150,
"overnightShipping": 300,
"minimumOrderAmount": 300,
"shippingConstraints": ["AZ", "CA"]
}