Ir al contenido
UnoPagoDocumentación
Referencia de la APICustomer dataTags

Create or update a tag

POST
/v1/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.

application/json
  1. body
id?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
name*string
Longitud1 <= length <= 100
emoji?string
Longitudlength <= 10
color?string
Patrón^#[0-9A-F]{6}$
description?string
Longitudlength <= 500
sortOrder?integer
Rango0 <= value <= 9007199254740991
entityTypes?array<>
Elementos1 <= items
Por defecto
[  "CUSTOMER"]
isActive?boolean

Cuerpo de la respuesta

Successful response

application/json
  1. response
entityTypes*array<>
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
accountId*string
name*string
emoji*string|null
color*string|null
description*string|null
isActive*boolean
sortOrder*integer
Rango-9007199254740991 <= value <= 9007199254740991
createdAt*string
updatedAt*string
deletedAt*string|null
Ejemplo de solicitud
curl -X POST 'https://api.unopago.com/v1/tags' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Ejemplo de respuesta
{  "entityTypes": [    "CUSTOMER"  ],  "id": "string",  "accountId": "string",  "name": "string",  "emoji": "string",  "color": "string",  "description": "string",  "isActive": true,  "sortOrder": -9007199254740991,  "createdAt": "string",  "updatedAt": "string",  "deletedAt": "string"}