Obtém um serviço específico
GEThttps://apis.cortecloud.com.br/services/:service_id
Retorna as informações de um serviço específico
Request
Path Parameters
service_id integerrequired
ID do serviço
Responses
- 200
Serviço encontrado
- application/json
- Schema
- Example (auto)
Schema
idinteger
Número do serviço no Cortecloud
internal_codestring
Número do pedido gerado no ERP (pode ser atualizado via API PUT)
observationstringnullable
Texto livre de observação visível para vendedor e produção
status object
client object
labour object
materials object
{
"id": 0,
"internal_code": "string",
"observation": "string",
"status": {
"code": 0,
"created_date": "2024-07-29T15:51:28.071Z",
"budgeted_date": "2024-07-29T15:51:28.071Z",
"purchased_date": "2024-07-29T15:51:28.071Z",
"authorized_date": "2024-07-29T15:51:28.071Z",
"finished_date": "2024-07-29T15:51:28.071Z"
},
"client": {
"internal_code": "string"
},
"labour": {
"cutting": {
"price": 0,
"quantity": 0
},
"edging": {
"price": 0,
"quantity": 0
},
"machining": {
"price": 0,
"resume": {
"drills": [
{
"diameter": 0,
"quantity": 0
}
],
"rip": [
{
"thickness": 0,
"quantity": 0
}
],
"filister": [
{
"thickness": 0,
"quantity": 0
}
]
}
},
"packing": {
"price": 0
},
"delivery": {
"price": 0
}
},
"materials": {
"boards": [
{
"internal_code": "string",
"price": 0,
"quantity": 0,
"parts": 0,
"description": "string",
"thickness": 0,
"length": 0,
"width": 0
}
],
"edges": [
{
"internal_code": "string",
"price": 0,
"quantity": 0,
"description": "string",
"thickness": 0,
"width": 0,
"unit": 0,
"applied": 0
}
],
"components": [
{
"internal_code": "string",
"price": 0,
"quantity": 0,
"description": "string",
"thickness": 0,
"unit": 0
}
]
}
}
Authorization: http
name: basicAuthtype: httpscheme: basic
name: x-dreamfactory-api-keytype: apiKeyin: header
- curl
- nodejs
- python
- csharp
- java
- CURL
curl -L 'https://apis.cortecloud.com.br/services/:service_id' \
-H 'Accept: application/json' \
-H 'Authorization: Basic PHVzZXJuYW1lPjo8cGFzc3dvcmQ+' \
-H 'x-dreamfactory-api-key: <apiKey>'
ResponseClear