# Advance a sandbox payment

`POST /v1/sandbox/orgs/{orgId}/payments/{paymentId}/advance`

Moves a payment to its next status, or straight to `failed` or `returned`, and fires `payment.updated`.

Requires: Proposed. Not on the sandbox API yet.

## Request body

- `to` (enum): next moves one step: approved -> processing -> completed. One of next, completed, failed, returned.

```json
{
  "to": "next"
}
```

Events: payment.updated, withdrawal.updated

```bash
curl -X POST "https://sandbox-api.payezy.io/v1/sandbox/orgs/$ORG_ID/payments/$PAYMENT_ID/advance" \
  -H "Authorization: Bearer $PAYEZY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "to": "next"
}'
```
