Ir al contenido

Crear establecimiento

POST
/emitters/{id}/establishments
curl --request POST \
--url https://api.sudte.com/v1/emitters/example/establishments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "id": "example", "code": "example", "name": "example", "type": "example", "address": { "department": "example", "municipality": "example", "district": "example", "line": "example" }, "phone": "example", "email": "hello@example.com", "active": true, "points_of_sale": [ { "code": "example", "name": "example", "active": true } ] }'
id
obligatorio
string
Media type application/json
object
id
string
code
obligatorio

Código MH (M001, S001, …)

string
name

Nombre interno de la sucursal

string
type
obligatorio

CAT-009

string
address
obligatorio
object
department

CAT-012

string
municipality

CAT-013

string
district

CAT-008

string
line
string
phone
string
email
string format: email
active
boolean
default: true
points_of_sale
Array<object>
object
code
string
name
string
active
boolean
default: true

Creado

Media type application/json
object
id
string
code
obligatorio

Código MH (M001, S001, …)

string
name

Nombre interno de la sucursal

string
type
obligatorio

CAT-009

string
address
obligatorio
object
department

CAT-012

string
municipality

CAT-013

string
district

CAT-008

string
line
string
phone
string
email
string format: email
active
boolean
default: true
points_of_sale
Array<object>
object
code
string
name
string
active
boolean
default: true

Example

{
"active": true,
"points_of_sale": [
{
"active": true
}
]
}