Cancel a payout that was not submitted yet
package main
import ( "fmt" "net/http" "io")
func main() {
url := "https://api.feitpay.com/v1/payouts/example/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Gryphem-Environment", "test") req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'https://api.feitpay.com/v1/payouts/example/cancel';const options = { method: 'POST', headers: {'Gryphem-Environment': 'test', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.feitpay.com/v1/payouts/example/cancel \ --header 'Authorization: Bearer <token>' \ --header 'Gryphem-Environment: test'Returns the held amount to the available balance.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Active organization for dashboard sessions. Ignored for API keys (the key determines the organization).
test (default) or live for dashboard sessions. API keys determine the environment.
Responses
Section titled “Responses”Canceled.
object
Decimal string. Never a float.
Integer amount in the asset’s smallest unit.
Pending_approval (waiting for a second merchant member) → pending_operator (GRYPHEM review) → submitting → submitted (created in Bitcart) → sent (broadcast) → complete (confirmed). Terminal: rejected, canceled, failed.
bitcart: sent by the platform Bitcart hot wallet (live).
The held amount went back to the available balance (always for canceled and rejected payouts; for a failed payout only when nothing can have been sent, or after an operator verified that and released it).
Operator console only.
Operator console only.
Example
{ "object": "payout", "amount": "59.90", "amount_units": "99834", "status": "pending_approval", "requested_via": "session", "processor": "bitcart"}Missing or invalid credentials.
object
object
Example
{ "error": { "type": "invalid_request_error" }}Authenticated but not permitted.
object
object
Example
{ "error": { "type": "invalid_request_error" }}Resource not found (or not visible to this tenant).
object
object
Example
{ "error": { "type": "invalid_request_error" }}State conflict.
object
object
Example
{ "error": { "type": "invalid_request_error" }}Too many requests. See Retry-After.
object
object
Example
{ "error": { "type": "invalid_request_error" }}