Customer Migrations Guide: Post Business Import
API Endpoints
Overview
Use this endpoint to add contracts to a business.
Schema
Responses
The following responses may be returned from the API.
| Status code | Description |
|---|---|
201 - Created |
If the payload is valid, a {
"business_contracts": [
{
"identifier": "123-12345"
},
{
"identifier": "456-12346"
}
]
} |
400 - Bad Request | The post business import endpoint does both validation and creation, so you will receive:
If there are validation errors, a
If there are creation errors, a |
404 - Not Found |
If a business is not found, then a |
500 - Internal Server Error |
If an unexpected error occurs, a |
Payloads
Example payload
{
"import_supplier_code": "TENTACLE_ENERGY",
"external_business_identifier": "EXTERNAL-1234",
"business_contracts": [
{
"valid_from_date": "2023-01-01",
"signed_at_date": "2023-01-01",
"versions": [
{
"applicable_at_date": "2023-01-01",
"terms": []
}
],
"identifier": "ABC"
}
]
}