Download OpenAPI specification:
Public APIs for integrations with Synkro.
Imports in batch the companies that collaborate with the caller company. If a company already exists in Synkro, a partnership request is created. If a company does not exist, an onboarding invitation is sent.
| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
required | Array of objects non-empty |
{- "items": [
- {
- "name": "string",
- "vat_number": "string",
- "country_code": "string",
- "invite_email": "user@example.com",
- "relationship_type_id": "f977a479-2908-4b27-9d30-86de92e298a9",
- "metadata": { }
}
]
}{- "import_id": "13230382-dadc-41f2-963d-e123bd5c0585",
- "status": "accepted"
}| importId required | string <uuid> |
{- "import_id": "13230382-dadc-41f2-963d-e123bd5c0585",
- "status": "pending",
- "totals": {
- "received": 0,
- "partnerships_sent": 0,
- "invites_sent": 0,
- "errors": 0
}, - "error_items": [
- {
- "index": 0,
- "code": "string",
- "message": "string"
}
]
}| cursor | string |
| limit | integer [ 1 .. 200 ] Default: 50 |
{- "next_cursor": "string",
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "vat_number": "string",
- "relationship_status": "active",
- "can_create_missions": true
}
]
}| cursor | string |
| limit | integer [ 1 .. 200 ] Default: 50 |
{- "next_cursor": "string",
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "address": "string",
- "city": "string",
- "country_code": "string",
- "latitude": 0.1,
- "longitude": 0.1
}
]
}| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
| id | string or null <uuid> |
| name required | string |
| address | string or null |
| city | string or null |
| country_code | string or null |
| latitude | number or null <double> |
| longitude | number or null <double> |
object |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "address": "string",
- "city": "string",
- "country_code": "string",
- "latitude": 0.1,
- "longitude": 0.1,
- "metadata": { }
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "address": "string",
- "city": "string",
- "country_code": "string",
- "latitude": 0.1,
- "longitude": 0.1
}
}| locationId required | string <uuid> |
| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
{- "error": {
- "code": "VALIDATION_ERROR",
- "message": "string",
- "correlation_id": "string",
- "details": [
- { }
]
}
}| cursor | string |
| limit | integer [ 1 .. 200 ] Default: 50 |
| include | string Example: include=tasks.steps,participants,assets,confirmations |
{- "next_cursor": "string",
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "external_ref": "string",
- "state": "string",
- "level_of_proof": "single",
- "planned_pickup": "2019-08-24T14:15:22Z",
- "planned_delivery": "2019-08-24T14:15:22Z",
- "metadata": { },
- "mission_assets": [
- {
- "asset_type": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "name": "string",
- "unit_default": "string"
}, - "quantity": 0,
- "unit": "string"
}
], - "mission_participants": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "role_in_mission": "string",
- "user": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "full_name": "string",
- "email": "user@example.com",
- "is_active": true
}
}
], - "mission_tasks": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "title": "string",
- "state": "string",
- "task_steps": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string",
- "name": "string",
- "state": "string",
- "scheduled_at": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
}| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
| template_code required | string |
| external_ref required | string |
| origin_company_id required | string <uuid> |
| destination_company_id required | string <uuid> |
| assigned_carrier_company_id | string or null <uuid> |
| planned_pickup | string or null <date-time> |
| planned_delivery | string or null <date-time> |
| level_of_proof | string Default: "single" Enum: "single" "double" |
Array of objects | |
object |
{- "template_code": "string",
- "external_ref": "string",
- "origin_company_id": "9619af02-4331-46cb-8ac4-8dce2a3ae728",
- "destination_company_id": "28beb504-2451-443f-8cc2-f19d4e44d193",
- "assigned_carrier_company_id": "37314bb0-83e4-4dcb-a0d4-59ac272f26df",
- "planned_pickup": "2019-08-24T14:15:22Z",
- "planned_delivery": "2019-08-24T14:15:22Z",
- "level_of_proof": "single",
- "assets": [
- {
- "asset_type_id": "b343f3ec-dd16-4b02-b71d-8e94fb644fbd",
- "quantity": 0,
- "unit": "string"
}
], - "metadata": { }
}{- "item": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "external_ref": "string",
- "state": "string",
- "level_of_proof": "single",
- "planned_pickup": "2019-08-24T14:15:22Z",
- "planned_delivery": "2019-08-24T14:15:22Z",
- "metadata": { }
}
}| missionId required | string <uuid> |
| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
required | Array of objects |
{- "items": [
- {
- "worker_id": "ae5fa6f7-c55b-40c1-b40a-b36ac467652b",
- "role_in_mission": "string"
}
]
}{- "updated_count": 0
}| missionId required | string <uuid> |
| workerId required | string <uuid> |
| X-Idempotency-Key required | string Required for mutating endpoints, generated by the ERP client. Synkro does not expose an endpoint to generate this key. Same key + same payload => same response. Same key + different payload => 409. |
| X-Correlation-Id | string |
{- "error": {
- "code": "VALIDATION_ERROR",
- "message": "string",
- "correlation_id": "string",
- "details": [
- { }
]
}
}| include_missions | boolean Default: true |
{- "items": [
- {
- "asset_type_id": "b343f3ec-dd16-4b02-b71d-8e94fb644fbd",
- "asset_code": "string",
- "asset_name": "string",
- "net_quantity": 0,
- "missions": [
- {
- "mission_id": "9c09dadd-092b-4bfc-897d-a4c7ba32314a",
- "external_ref": "string",
- "quantity": 0
}
]
}
]
}| companyId required | string <uuid> |
{- "items": [
- {
- "company_id": "b2e6a1c3-1a5e-44ae-a8fd-81f76fd715cf",
- "company_name": "string",
- "net_quantity": 0,
- "by_asset": [
- {
- "asset_type_id": "b343f3ec-dd16-4b02-b71d-8e94fb644fbd",
- "asset_code": "string",
- "quantity": 0
}
]
}
]
}