Ir al contenido
UnoPagoDocumentación

Create a new grade or update an existing grade for the current account.

POST
/v1/grades

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
gradeId?string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
name*string
description?string
level*number

Cuerpo de la respuesta

Successful response

application/json
  1. response
id*string
Patrón^[cC][0-9a-z]{6,}$
Formatocuid
name*string
description?string
level*number
Ejemplo de solicitud
curl -X POST 'https://api.unopago.com/v1/grades' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "level": 0}'
Ejemplo de respuesta
{  "id": "string",  "name": "string",  "description": "string",  "level": 0}