create CashOut

POST
                                                             

https://api.sigilopay.com/c1/cashout/

create CashOut

Request

Bodyrequired

    name string required

    Nome do beneficiário.

    Example: maria silva
    pixType string required

    Tipo de chave PIX.

    Possible values: [CPF, CNPJ, EMAIL, PHONE]

    Example: CPF
    document string required

    Documento do beneficiário (CPF ou CNPJ).

    Example: 12345678998
    keypix string required

    Chave PIX associada ao beneficiário.

    Example: 12345678998
    amount numberrequired

    Valor do saque em reais(usar '.' para separar os centavos).

    Example: 10.50

Responses

Exemplo de Resposta:
"status": "success", 
"message": "Cashout processado",
"idtransaction": "802148a5-ef6d-439d-be3b-ecf432dud7s"

Authorization: http

                                                                        name: basic
                                                                        type: http
                                                                        scheme: basic
                                                                    
$data = ["name" => "paulo",
"pixType" => "CPF",
"document" => "70394872654",
"keypix" => "70394872654",
"amount" => 2];
$ch = curl_init("https://api.sigilopay.com/c1/cashout/");
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => ["Content-Type: application/json"],
]);
$response = curl_exec($ch);
curl_close($ch);