DEL
/cards/associations/v1/Desasociar tarjeta
El endpoint Delete /cards/associations/v1 te permite desasociar una tarjeta de una cuenta.
Consideraciones
La cuenta y la tarjeta deben estar previamente asociadas.
Parámetros disponibles
Header Parameters
AuthorizationStringrequired
Cuerpo de solicitud
application/jsoncard_idstringrequired
account_idstringrequired
Detalle de respuestas
Ejemplo de solicitud
{
"card_id": "crd-20gRqyp809SvDzXzhSeG2w6UiO5",
"account_id": "acc-20I5vMjljS3VEyafcX8lA3T3g0c"
}Ejemplo de código
curl -X DELETE "https://api.pomelo.la/cards/associations/v1/" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"card_id": "crd-20gRqyp809SvDzXzhSeG2w6UiO5",
"account_id": "acc-20I5vMjljS3VEyafcX8lA3T3g0c"
}'Ejemplo de respuesta (200)Asociación eliminada
{
"card_id": "crd-20gRqyp809SvDzXzhSeG2w6UiO5",
"account_id": "acc-20I5vMjljS3VEyafcX8lA3T3g0c",
"associated": true,
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}