Skip to main content
POST
/
api
/
integration_shipping_rate_mapping_groups
/
{mapping_group_id}
/
mappings
Create an integration shipping rate mapping
curl --request POST \
  --url https://clarus-api.com/api/integration_shipping_rate_mapping_groups/{mapping_group_id}/mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Clarus-Subdomain: <api-key>' \
  --data '
{
  "data": {
    "type": "integration_shipping_rate_mappings",
    "attributes": {
      "carrier_id": 12,
      "carrier_service_id": 34,
      "integration_shipping_rate_id": 555,
      "mapping_fields": [
        {
          "rate_code": "STD"
        }
      ]
    }
  }
}
'
{
  "id": 5
}

Request Structure

{
  "data": {
    "type": "integration_shipping_rate_mappings",
    "attributes": {
      "carrier_id": 12,
      "carrier_service_id": 34,
      "integration_shipping_rate_id": 555,
      "mapping_fields": [{ "rate_code": "STD" }]
    }
  }
}
Links an external shipping-rate entity to an internal carrier + service. carrier_id and carrier_service_id must both be set or both omitted (an unmapped rate is allowed); a partial pair returns 422.

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.

X-Clarus-Subdomain
string
header
required

The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.

Path Parameters

mapping_group_id
integer
required

The integration shipping rate mapping group ID

Body

application/json
data
object
required

Response

Created successfully

Created record