Skip to main content

Mark a transaction declined

POST 

/api/v3/transaction/:transaction_id/_action/decline

If ChargeOver is unable to get informaton back about NSF payments from your ACH payment gateway, you can use this API call to manually mark a transaction as declined via the API.

Optionally, you can specify values for the gateway_msg, gateway_err_code, and gateway_err_detail fields to supply more information about the failed transaction.

For the gateway_msg field, you can put the message from your gateway about why the transaction failed. For instance, if a transaction failed because of insufficient funds, you could put "Insufficient Funds" in for this field.

If you are not sure what error code to use for the gateway_err_code field, you can view our list of payment processor error codes here.

Request

Body

    gateway_msg string
    gateway_err_code string
    gateway_err_detail string

Responses

Action completed successfully

Schema

    code integer
    status string
    message stringnullable
    details objectnullable
    response boolean
Loading...