Use this endpoint to cancel a transfer before funds have been received. Cancellation is only possible while the transfer is inDocumentation Index
Fetch the complete documentation index at: https://docs.spherepay.co/llms.txt
Use this file to discover all available pages before exploring further.
pendingFunding status — once SpherePay detects an incoming deposit and the transfer moves to fundsReceived or beyond, it can no longer be canceled. If funds arrive after cancellation, SpherePay will attempt to return them and the transfer may transition to returned or pendingRefundInformation.
Endpoint
Authentication
All requests require a Bearer token in theAuthorization header.
Path parameters
The unique transfer ID, prefixed with
payout_ (e.g. payout_d243ab2b1de4447d8a046d87fefe58cf).Request body
This endpoint does not require a request body.Cancelable statuses
| Status | Can cancel? |
|---|---|
pendingFunding | Yes |
pendingReview | No |
fundsReceived | No |
processing | No |
succeeded | No |
failed | No |
| Any other terminal status | No |
Response fields
The response is the full transfer object reflecting the updatedcanceled status.
Unique transfer identifier.
Transfer direction:
on_ramp or off_ramp.Updated status. Will be
canceled for a successful cancellation.The customer ID associated with this transfer.
Integrator-defined reference string, if one was provided at creation.
Fee breakdown. Fees are not charged for canceled transfers.
Source identifier and type.
Destination identifier, type, currency, and network.
Deposit instructions that were active before cancellation. Present for reference only — do not fund a canceled transfer.
Network-level tracking identifiers (empty for canceled transfers).
ISO 8601 timestamp of transfer creation.
ISO 8601 timestamp reflecting the cancellation time.
What happens if funds arrive after cancellation
If a customer sends funds to the deposit account after the transfer has been canceled, SpherePay will detect the incoming deposit and attempt to return the funds. The transfer status will transition toreturned once the refund is complete, or to pendingRefundInformation if additional details are needed. Monitor the transfer status by polling GET /v2/transfer/ or by listening for webhook events.
Error codes
| Status | Code | Description |
|---|---|---|
400 | address/invalid | The transfer is not in a cancelable status (pendingFunding). |
404 | resource/not-found | No transfer exists with the given ID. |
422 | validation/failed | The provided ID did not pass format validation. |

