# Cancel a customer's payment

`POST /v1/platforms/{platformOrgId}/customers/{customerOrgId}/payments/{paymentId}/cancel`

**Cancel a customer's payment** (Act as a platform). Cancels a payment that has not been sent yet.

Prerequisite: Permission `platform:customer_operate`. `paymentId` comes from create payment.

Acts on a linked customer with the platform's own key or team (platform:customer_operate). Same as POST /v1/orgs/{orgId}/payments/{paymentId}/cancel.

Requires: organization platform; permission platform:customer_operate

Events: payment.updated

Errors: not_cancelable

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/platforms/$PLATFORM_ORG_ID/customers/$CUSTOMER_ORG_ID/payments/$PAYMENT_ID/cancel" \
  -H "Authorization: Bearer $PAYEZY_KEY"
```
