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_date y delete_date).
  • status puede ser ENABLED, DISABLED, DELETED o INCOMPLETE. Un comercio creado con la versión 2 queda en INCOMPLETE con pending_steps ACQUIRER y PAYMENT_PLAN hasta completar la configuración.
  • financial_info contiene la condición impositiva y la cuenta bancaria del comercio: CBU o CVU (ARG) o CLABE (MEX) en account_info.cbu_or_cvu. Siempre está presente: es null cuando el comercio no tiene datos impositivos cargados. tax_condition, account_info y account_type también pueden ser null.
  • 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"
        }
      }
    }
  }