POST /channels/{id}/rates.json

POST /channels/{id}/rates.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

Responses

POST /channels/{id}/rates.json
curl \
 -X POST http://api.example.com/v1/channels/{id}/rates.json \
 -H "Content-Type: application/json" \
 -d '{"errors":[{"type":"string","status":42.0,"title":"string"}],"days":42,"missingRates":true,"unallocatedShipments":true,"totalPrice":42.0,"totalShipments":42,"shipments":[{"dropshipProvider":{},"shipping_rate":{},"isDomestic":true,"fromCountry":"string","weight":42.0,"dimensions":{"length":42.0,"width":42.0,"height":42.0,"distanceUnit":"em","massUnit":"kg"},"totalItems":42,"orderValue":42.0,"price":42.0,"provider":"string","providerCode":"string","providerId":"string","days":42,"serviceLevel":"string","serviceLevelToken":"string","serviceLevelTerms":"string","quoteHash":"string","integration":"string","serviceCode":"string","handlingFee":42,"label":"string","signatureRequired":true,"fallback":true,"freeShipping":true,"saleItems":[{"quantity":42,"price":42.0,"variant":{}}],"errors":[{"type":"string","status":42.0,"title":"string"}],"alternatives":[{"price":42.0,"provider":"string","providerCode":"string","providerId":"string","days":42,"serviceLevel":"string","serviceLevelToken":"string","serviceLevelTerms":"string","quoteHash":"string","integration":"string","serviceCode":"string","handlingFee":42,"label":"string","signatureRequired":true,"fallback":true,"freeShipping":true}]}]}'
Request example
{
  "errors": [
    {
      "type": "string",
      "status": 42.0,
      "title": "string"
    }
  ],
  "days": 42,
  "missingRates": true,
  "unallocatedShipments": true,
  "totalPrice": 42.0,
  "totalShipments": 42,
  "shipments": [
    {
      "dropshipProvider": {},
      "shipping_rate": {},
      "isDomestic": true,
      "fromCountry": "string",
      "weight": 42.0,
      "dimensions": {
        "length": 42.0,
        "width": 42.0,
        "height": 42.0,
        "distanceUnit": "em",
        "massUnit": "kg"
      },
      "totalItems": 42,
      "orderValue": 42.0,
      "price": 42.0,
      "provider": "string",
      "providerCode": "string",
      "providerId": "string",
      "days": 42,
      "serviceLevel": "string",
      "serviceLevelToken": "string",
      "serviceLevelTerms": "string",
      "quoteHash": "string",
      "integration": "string",
      "serviceCode": "string",
      "handlingFee": 42,
      "label": "string",
      "signatureRequired": true,
      "fallback": true,
      "freeShipping": true,
      "saleItems": [
        {
          "quantity": 42,
          "price": 42.0,
          "variant": {}
        }
      ],
      "errors": [
        {
          "type": "string",
          "status": 42.0,
          "title": "string"
        }
      ],
      "alternatives": [
        {
          "price": 42.0,
          "provider": "string",
          "providerCode": "string",
          "providerId": "string",
          "days": 42,
          "serviceLevel": "string",
          "serviceLevelToken": "string",
          "serviceLevelTerms": "string",
          "quoteHash": "string",
          "integration": "string",
          "serviceCode": "string",
          "handlingFee": 42,
          "label": "string",
          "signatureRequired": true,
          "fallback": true,
          "freeShipping": true
        }
      ]
    }
  ]
}
Response examples (200)
{
  "errors": [
    {
      "type": "string",
      "status": 42.0,
      "title": "string"
    }
  ],
  "days": 42,
  "missingRates": true,
  "unallocatedShipments": true,
  "totalPrice": 42.0,
  "totalShipments": 42,
  "shipments": [
    {
      "dropshipProvider": {},
      "shipping_rate": {},
      "isDomestic": true,
      "fromCountry": "string",
      "weight": 42.0,
      "dimensions": {
        "length": 42.0,
        "width": 42.0,
        "height": 42.0,
        "distanceUnit": "em",
        "massUnit": "kg"
      },
      "totalItems": 42,
      "orderValue": 42.0,
      "price": 42.0,
      "provider": "string",
      "providerCode": "string",
      "providerId": "string",
      "days": 42,
      "serviceLevel": "string",
      "serviceLevelToken": "string",
      "serviceLevelTerms": "string",
      "quoteHash": "string",
      "integration": "string",
      "serviceCode": "string",
      "handlingFee": 42,
      "label": "string",
      "signatureRequired": true,
      "fallback": true,
      "freeShipping": true,
      "saleItems": [
        {
          "quantity": 42,
          "price": 42.0,
          "variant": {}
        }
      ],
      "errors": [
        {
          "type": "string",
          "status": 42.0,
          "title": "string"
        }
      ],
      "alternatives": [
        {
          "price": 42.0,
          "provider": "string",
          "providerCode": "string",
          "providerId": "string",
          "days": 42,
          "serviceLevel": "string",
          "serviceLevelToken": "string",
          "serviceLevelTerms": "string",
          "quoteHash": "string",
          "integration": "string",
          "serviceCode": "string",
          "handlingFee": 42,
          "label": "string",
          "signatureRequired": true,
          "fallback": true,
          "freeShipping": true
        }
      ]
    }
  ]
}