Create a contract for a supported carrier.
"validating". This means the system is verifying the contract data with carriers, which typically takes only a few seconds, depending on the carriers.
Once validation is complete, the contract’s state will change to one of the following:
"active" or "inactive": The contract has been successfully processed."validation_failed": An error occurred during validation. Additional information about the failure will be provided.Basic Authentication using API key and secrets is currently the main authentication mechanism.
Contract request object model
Fields for creating a contract. It supports dynamic key-value pairs, where keys represent field names and values are string-based data.
{
"country": "NL",
"client_id": "sendcloud-1"
}The carrier code of the contract
"postnl"
New contracts are inactive by default, if you want to activate it immediately set this flag.
false
Marks the contract as default for a carrier. You can have only one default direct contract per carrier.
false
OK
Create a contract
User contract