Receptores

Consultar un receptor

GET
/v1/ec/recipients/{identification}

Un receptor por su RUC o cédula, con lo que llevas vendido este año por tipo de comprobante y por mes.

Autorización

AutorizaciónBearer <tu clave API>

Tu clave API: fb_sandbox_… emite en Sandbox, fb_test_… en test, el servicio de pruebas de la autoridad tributaria, y fb_live_… en live, su producción.

En: header

Parámetros de ruta

identification*string
Longitud1 <= length <= 20

Parámetros de consulta

entity_id?string

El negocio cuyos receptores quieres. Sin él, el único negocio de la organización para el ambiente de tu clave; 422 si hay varios.

Formatouuid

Cuerpo de la respuesta

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/v1/ec/recipients/string"
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "object": "recipient",  "identification": "string",  "name": "string",  "email": "string",  "currency": "string",  "year_count": 0,  "year_total": "string",  "sales_total": "string",  "phone": "string",  "email_bounced": true,  "last_issue_date": "2019-08-24",  "sri_status": "active",  "portal_request": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "entity_id": "8161163a-f227-466f-bc01-090a01e80165",    "email": "user@example.com",    "created_at": "2019-08-24T14:15:22Z"  },  "created_at": "2019-08-24T14:15:22Z",  "year": {    "year": 0,    "count": 0,    "currency": "string",    "total": "string",    "by_type": {      "invoice": 0,      "credit_note": 0,      "debit_note": 0,      "withholding": 0,      "delivery_note": 0,      "purchase_settlement": 0    },    "by_month": [      "string"    ]  }}