curl --request GET \
--url https://panel.sendcloud.sc/api/v3/contracts/schemas \
--header 'Authorization: Basic <encoded-value>'{
"data": [
{
"carrier_code": "ups",
"fields": [
{
"name": "account_number",
"description": "Your UPS Account Manager can provide you with the Account Number.",
"required": true,
"type": "string"
},
{
"name": "country",
"description": "Select a contract country.",
"required": false,
"type": "choice",
"choices": [
{
"code": "NL",
"description": "Netherlands"
},
{
"code": "BE",
"description": "Belgium"
}
]
}
]
}
]
}Retrieve information about contract schemas (by carrier) to help with creating/updating contracts.
curl --request GET \
--url https://panel.sendcloud.sc/api/v3/contracts/schemas \
--header 'Authorization: Basic <encoded-value>'{
"data": [
{
"carrier_code": "ups",
"fields": [
{
"name": "account_number",
"description": "Your UPS Account Manager can provide you with the Account Number.",
"required": true,
"type": "string"
},
{
"name": "country",
"description": "Select a contract country.",
"required": false,
"type": "choice",
"choices": [
{
"code": "NL",
"description": "Netherlands"
},
{
"code": "BE",
"description": "Belgium"
}
]
}
]
}
]
}Basic Authentication using API key and secrets is currently the main authentication mechanism.
The carrier you want to filter for, for instance: postnl. You can find available carriers in your Sendcloud account settings.
OK
Retrieve contract schemas.
Show child attributes