Importar Bodegas
Información General
- URL:
https://siigointerface.ensamblefs.com:4005/api/v1/siigo-pyme/send
- Autenticación: Bearer Token
- Tipo:
POST
Parámetros de la Solicitud
Campo | Campo Anidado | Tipo | Valor - Límite | Descripción |
---|---|---|---|---|
id_connection | - | String (obligatorio) | - | ID único de conexión a Siigo Connector V2 |
execution_type | - | String (obligatorio) | import | Importar datos desde Siigo Pyme |
resource | - | String (obligatorio) | warehouses | Bodegas |
params | - | Object (obligatorio) | - | Filtros de consulta |
year | - | Number | Año actual por defecto | Año a consultar |
warehouse_initial | - | Number (obligatorio) | Max. 9999 Min. 1 | Bodega inicial |
warehouse_final | - | Number (obligatorio) | Max. 9999 Min. 1 | Bodega final |
location_initial | - | Number (obligatorio) | Max. 999 Min. 0 | Ubicación inicial |
location_final | - | Number (obligatorio) | Max. 999 Min. 0 | Ubicación final |
request_config | - | Object | - | Parámetros avanzados de petición |
timeout | request_config | Number | 2 min por defecto, Max. 60 min, Min. 2 min | Tiempo de espera por petición |
attempts | request_config | Number | Max. 3 intentos, Min. 1 intento | Reintentos en caso de fallo |
backoff | request_config | Number | Max. 30 min, Min. 0.5 min | Tiempo de espera entre cada reintento |
Request JSON
{ "id_connection": "OBai6kmwKH", "execution_type": "import", "resource": "warehouses", "params": { "year": 2024, "warehouse_initial": 1, "warehouse_final": 9999, "location_initial": 1, "location_final": 999 }}
Response DATA
Campo | Referencia |
---|---|
CÓDIGO DE LA BODEGA (OBLIGATORIO) | warehouse_code |
DESCRIPCIÓN DE LA BODEGA | warehouse_description |
CÓDIGO DE LA UBICACIÓN | location_code |
DESCRIPCIÓN DE LA UBICACIÓN | location_description |
RESPONSABLE DE LA BODEGA | warehouse_responsible |
DIRECCIÓN DE LA BODEGA | warehouse_address |
TELÉFONO 1 DE LA BODEGA | warehouse_phone_1 |
TELÉFONO 2 DE LA BODEGA | warehouse_phone_2 |
FAX DE LA BODEGA | warehouse_fax |
EMAIL DE LA BODEGA | warehouse_email |
Response JSON
{ "statusCode": 200, "status": "success", "data": [ { "warehouse_code": 1, "warehouse_description": "BODEGA PRINCIPAL", "location_code": 0, "location_description": "", "warehouse_responsible": "SONRIX", "warehouse_address": 0, "warehouse_phone_1": 0, "warehouse_phone_2": 0, "warehouse_fax": 0 } ]}