Skip to content

Status changer

Stauts changer

You can change the status of a PayOut by making a request to the following endpoint:

POST /api/v1/order/status
Host: apibr.sulpayments.ch
Content-Type: application/json
Authorization: "<token>"

{
    "code": "123-456",
    "status": "done"
}

Params descriptions

Param Description Value Type
code PayOut reference in your system (partner_code) String
status Status that you want to simulate ("done", "denied" or "error") String

On a successful request HTTP 200 status code, the response will be:

{
    "message": "success"
}

Business errors due to incorrect or missing parameters are returned with an HTTP 400 status code. The response will indicate the error.

{
    "message": "Payout not found"
}