curl --request PATCH \
--url https://panel.sendcloud.sc/api/v3/shipping-defaults \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"weight": {
"value": "1.500",
"unit": "kg"
}
}
'{
"data": {
"weight": {
"value": "1.500",
"unit": "kg"
},
"ship_with": {
"type": "shipping_method_id",
"properties": {
"shipping_method_id": 8
}
},
"insurance": {
"type": "percentage",
"properties": {
"percentage": 100
}
},
"customs_options": {
"export_reason": "commercial_goods",
"use_order_number_as_invoice_number": false
},
"label_options": {
"label_notes": [
"order_reference"
],
"show_qr_code_letter": true,
"show_port_letter": false
}
}
}Shipping defaults
Update your shipping defaults
Update the shipping defaults configured for your account.
Only the fields you send are changed; anything you omit keeps its current value. Send null for ship_with or insurance to remove that default.
PATCH
/
shipping-defaults
curl --request PATCH \
--url https://panel.sendcloud.sc/api/v3/shipping-defaults \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"weight": {
"value": "1.500",
"unit": "kg"
}
}
'{
"data": {
"weight": {
"value": "1.500",
"unit": "kg"
},
"ship_with": {
"type": "shipping_method_id",
"properties": {
"shipping_method_id": 8
}
},
"insurance": {
"type": "percentage",
"properties": {
"percentage": 100
}
},
"customs_options": {
"export_reason": "commercial_goods",
"use_order_number_as_invoice_number": false
},
"label_options": {
"label_notes": [
"order_reference"
],
"show_qr_code_letter": true,
"show_port_letter": false
}
}
}OAuth2 scopes required:
write:operational-settings. See Scopes for OAuth apps.Authorizations
HTTPBasicAuthOAuth2ClientCreds
Scopes
Body
application/json
The shipping defaults to change. Every field is optional; anything you omit keeps its current value.