Create Transaction Pix

POST
                                                             

https://api.sigilopay.com/v1/gateway/

Request

Bodyrequired

    amount numberrequired
    Example: 10
    client object required
    name string
    Example: Maria Silva
    document string
    Example: 12345678912
    telefone string
    Example: 99987654321
    email string
    Example: johndoe@email.com
    utms object
    utm_source string
    Example: google
    utm_medium string
    Example: cpc
    utm_campaign string
    Example: promocao_novembro
    utm_term string
    Example: comprar+produto
    utm_content string
    Example: banner_lateral
    product object
    produto exemplo string
    Example: google
    valor_product string
    Example: 10

Responses

Exemplo de Resposta:
                                                                            {
                                                                            
"status": "success",
"message": "ok",
"paymentCode": "0002018ew87814br.gov.bcb.pix2563pix.hehkub.com.br/qr/v3/at/76e06473-1664-4336-a124-e90e3f13b3305204000053039sde3dssd*6304F7A8",
"idTransaction": "7994cc4f-69ea-4b5a-8398-d3961sj8usw2b",
"paymentCodeBase64": "MDAwMjAxMjY4NTAwMTRici5nb3YuYmNiLnBpeDI1NjNwaXgudm9sdXdsdsKioqNjMwNEY3QTg="
}

Authorization: http

                                                                        name: basic
                                                                        type: http
                                                                        scheme: basic
                                                                      
                                                                    
$data = [
"amount" => 10,
"client" => [
"name" => "Maria Silva",
"document" => "12345678912",
"telefone" => "99987654321",
"email" => "johndoe@email.com",
],
"utms" => [
"utm_source" => "google",
"utm_medium" => "cpc",
"utm_campaign" => "promocao_novembro",
"utm_term" => "comprar+produto",
"utm_content" => "banner_lateral",
],
"product" => [
"name_product" => "produto exemplo",
"valor_product" => "10",
]
];

$ch = curl_init("https://api.sigilopay.com/v1/gateway/");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => json_encode($data),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Authorization: Bearer SUA_API_KEY_AQUI",
],
]);

$response = curl_exec($ch);
curl_close($ch);