Actualizar un código QR
curl --request POST \
--url https://cerberus.eazybe.com/prod/api/v2/meta/phone-numbers/{phoneNumberId}/qr-codes/{code} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefilledMessage": "Hi, I want to track my order"
}
'{
"code": "4O4YJHFAB3SLA1",
"prefilled_message": "Hi, I want to track my order",
"deep_link_url": "https://wa.me/message/4O4YJHFAB3SLA1"
}Códigos QR
Actualizar un código QR
Actualizar un código QR. Consulta los parámetros, el ejemplo y las respuestas disponibles para esta operación.
POST
/
meta
/
phone-numbers
/
{phoneNumberId}
/
qr-codes
/
{code}
Actualizar un código QR
curl --request POST \
--url https://cerberus.eazybe.com/prod/api/v2/meta/phone-numbers/{phoneNumberId}/qr-codes/{code} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prefilledMessage": "Hi, I want to track my order"
}
'{
"code": "4O4YJHFAB3SLA1",
"prefilled_message": "Hi, I want to track my order",
"deep_link_url": "https://wa.me/message/4O4YJHFAB3SLA1"
}Autorizaciones
Token bearer de Eazybe. El token identifica la organización y debe mantenerse en el servidor.
Parámetros de ruta
ID del número de teléfono devuelto por GET /meta/phone-numbers.
Código del recurso.
Cuerpo
application/json
{
"prefilledMessage": "Hi, I want to track my order"
}
Respuesta
200 - application/json
Prefilled message updated — code and printed QR stay valid
Failure responses
| Status | Meaning | Action |
|---|---|---|
401 | Missing, invalid, or expired bearer token | Re-authenticate |
404 | phoneNumberId not linked to your organization | Verify the id |
400 | code unknown, or prefilledMessage missing | Confirm via GET .../qr-codes |
502 | Graph unreachable or timed out | Retry with backoff |
¿Esta página le ayudó?