curl --request POST \
--url https://api.unicornify.com.br/api/public/v1/transactions \
--header 'Content-Type: application/json' \
--data '{
"amount": 500,
"offer_hash": "s7b5e",
"payment_method": "pix",
"card": {
"number": "4111 1111 1111 1111",
"holder_name": "Teste Holder name",
"exp_month": 12,
"exp_year": 2025,
"cvv": "123"
},
"customer": {
"name": "Customer name",
"email": "[email protected]",
"phone_number": "21975784612",
"document": "09115751031",
"street_name": "Nome da Rua",
"number": "sn",
"complement": "Lt19 Qd 134",
"neighborhood": "Centro",
"city": "Itaguaí",
"state": "RJ",
"zip_code": "23822180"
},
"cart": [
{
"product_hash": "so4neitign",
"title": "Produto Teste API Publica",
"cover": null,
"price": 10000,
"quantity": 2,
"operation_type": 1,
"tangible": false
}
],
"installments": 1,
"expire_in_days": 1,
"postback_url": "",
"tracking": {
"src": "",
"utm_source": "",
"utm_medium": "",
"utm_campaign": "",
"utm_term": "",
"utm_content": ""
}
}'
Cria uma nova transação de compra com base nos dados fornecidos.
curl --request POST \
--url https://api.unicornify.com.br/api/public/v1/transactions \
--header 'Content-Type: application/json' \
--data '{
"amount": 500,
"offer_hash": "s7b5e",
"payment_method": "pix",
"card": {
"number": "4111 1111 1111 1111",
"holder_name": "Teste Holder name",
"exp_month": 12,
"exp_year": 2025,
"cvv": "123"
},
"customer": {
"name": "Customer name",
"email": "[email protected]",
"phone_number": "21975784612",
"document": "09115751031",
"street_name": "Nome da Rua",
"number": "sn",
"complement": "Lt19 Qd 134",
"neighborhood": "Centro",
"city": "Itaguaí",
"state": "RJ",
"zip_code": "23822180"
},
"cart": [
{
"product_hash": "so4neitign",
"title": "Produto Teste API Publica",
"cover": null,
"price": 10000,
"quantity": 2,
"operation_type": 1,
"tangible": false
}
],
"installments": 1,
"expire_in_days": 1,
"postback_url": "",
"tracking": {
"src": "",
"utm_source": "",
"utm_medium": "",
"utm_campaign": "",
"utm_term": "",
"utm_content": ""
}
}'
Token da API para autenticação.