Comercios
Obtener comercio
GET /v1/merchants/{merchant_id}
Este endpoint permite obtener datos de un comercio específico. Disponible con credenciales CUSTOMER y MERCHANT: con credenciales CUSTOMER se pueden consultar los comercios del cliente; con credenciales MERCHANT, solo el comercio propio.
ℹ️
- Los campos sin valor se omiten de la respuesta (
business_name,fantasy_name,representative,address.floor,address.apartment,address.neighborhood,address.location,additional_info,pending_steps,update_dateydelete_date). statuspuede serENABLED,DISABLED,DELETEDoINCOMPLETE. Un comercio creado con la versión 2 queda enINCOMPLETEconpending_stepsACQUIRERyPAYMENT_PLANhasta completar la configuración.financial_infocontiene la condición impositiva y la cuenta bancaria del comercio: CBU o CVU (ARG) o CLABE (MEX) enaccount_info.cbu_or_cvu. Siempre está presente: esnullcuando el comercio no tiene datos impositivos cargados.tax_condition,account_infoyaccount_typetambién pueden sernull.- Un comercio eliminado responde
404.
curl --request GET \
--url https://api.menta.global/api/v1/merchants/{merchant_id} \
--header 'Authorization: Bearer {access_token}' {
"id": "string",
"customer_id": "string",
"country": "string",
"status": "string",
"legal_type": "string",
"business_name": "string",
"fantasy_name": "string",
"representative": {
"type": "string",
"representative_id": {
"type": "string",
"number": "string"
},
"birth_date": "2019-08-24T14:15:22Z",
"name": "string",
"surname": "string"
},
"merchant_code": "string",
"address": {
"state": "string",
"city": "string",
"zip": "string",
"street": "string",
"number": "string",
"floor": "string",
"apartment": "string",
"neighborhood": "string",
"location": {
"lat": -34.603722,
"lng": -58.381592
}
},
"email": "string",
"phone": "string",
"activity": "string",
"category": "string",
"tax": {
"id": "string",
"type": "string"
},
"additional_info": "string",
"pending_steps": ["string"],
"create_date": "2019-08-24T14:15:22Z",
"update_date": "2019-08-24T14:15:22Z",
"delete_date": "2019-08-24T14:15:22Z",
"_links": {
"self": {
"href": "string"
}
},
"financial_info": {
"tax_condition": "string",
"account_info": {
"cbu_or_cvu": "string",
"account_type": {
"code": "string",
"type": "string"
}
}
}
}