Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataTags

Assign a tag to a customer

POST
/v1/customers/{customerId}/tags

Autorización

bearerAuth
headerAutorizaciónBearer <token>

Your API key, created in Configuración → Claves API. The key alone, without the Bearer prefix, is accepted too.

Parámetros de ruta

customerId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
application/json
  1. body
tagId*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid

Cuerpo de la respuesta

Successful response

application/json
  1. response
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
customerId*string
tagId*string
metadata*string|number|boolean|null||array<unknown>|null
createdAt*string
createdBy*string|null
Ejemplo de solicitud
curl -X POST 'https://api.unopago.com/v1/customers/string/tags' \  -H 'Content-Type: application/json' \  -d '{  "tagId": "string"}'
Ejemplo de respuesta
{  "id": "string",  "accountId": "string",  "customerId": "string",  "tagId": "string",  "metadata": "string",  "createdAt": "string",  "createdBy": "string"}