Saltar al contenido principal
POST
/
v1
/
customer_portal
/
sessions
Create a customer portal session
curl --request POST \
  --url https://api.easyverifactu.com/v1/customer_portal/sessions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "external_customer_id": "cus_9aZ"
}
'
{
  "url": "https://app.easyverifactu.com/portal/eyJ…",
  "expires_at": "2026-06-01T10:30:00Z"
}

Autorizaciones

Authorization
string
header
requerido

API key sent as a bearer token in the Authorization header.

Cuerpo

application/json

The customer to create a portal session for.

Identifies the customer a portal session is created for.

external_customer_id
string
requerido

External customer identifier from the originating integration. Must match exactly one customer in the environment.

Minimum string length: 1
Ejemplo:

"cus_9aZ"

Respuesta

A signed link to a customer portal session.

A signed link to a customer portal session.

url
string
requerido

Portal URL carrying a signed, time-limited session token. Hand it to the customer so they can view their invoices without exposing your API key.

Ejemplo:

"https://app.easyverifactu.com/portal/eyJ…"

expires_at
string
requerido

When the portal session stops working, RFC 3339 in UTC. Create a fresh session after this.

Ejemplo:

"2026-06-01T10:30:00Z"