curl --request POST \
--url https://api.conta.paybeehive.com.br/v1/transactions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500,
"paymentMethod": "credit_card",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
}
},
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": true,
"externalRef": "item_ext_001"
}
],
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": true,
"createdAt": "2026-01-04T12:00:00Z"
},
"installments": 1,
"pix": {
"expiresInSeconds": 3600
},
"boleto": {
"expiresInDays": 3
},
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"postbackUrl": "https://webhook.minhaloja.com/bee",
"traceable": false,
"ip": "189.10.20.30",
"externalRef": "order_123",
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
]
}
'import requests
url = "https://api.conta.paybeehive.com.br/v1/transactions"
payload = {
"amount": 500,
"paymentMethod": "credit_card",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
}
},
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": True,
"externalRef": "item_ext_001"
}
],
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": True,
"createdAt": "2026-01-04T12:00:00Z"
},
"installments": 1,
"pix": { "expiresInSeconds": 3600 },
"boleto": { "expiresInDays": 3 },
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"postbackUrl": "https://webhook.minhaloja.com/bee",
"traceable": False,
"ip": "189.10.20.30",
"externalRef": "order_123",
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500,
paymentMethod: 'credit_card',
customer: {
name: 'Bruce Wayne',
email: 'bruce@wayne.com',
document: {number: '12345678909', type: 'cpf'},
externalRef: 'cust_ext_001',
phone: '+5511999999999',
birthdate: '1990-01-01',
address: {
street: 'Av. Brigadeiro Faria Lima',
streetNumber: '1811',
complement: 'Conj 1119',
neighborhood: 'Itaim Bibi',
city: 'São Paulo',
state: 'SP',
zipCode: '01452001',
country: 'BR'
}
},
items: [
{
title: 'Produto X',
unitPrice: 5000,
quantity: 1,
tangible: true,
externalRef: 'item_ext_001'
}
],
metadata: {
provider: 'CustomCheckout',
user_email: 'cliente@exemplo.com',
order_id: 'CC-20260121-000392',
checkout_url: 'https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392',
shop_url: 'https://minhaloja.com.br'
},
card: {
id: 10,
hash: 'card_hash_abc',
number: '4111111111111111',
holderName: 'Bruce Wayne',
expirationMonth: 12,
expirationYear: 2030,
cvv: '123',
brand: 'visa',
lastDigits: '1111',
reusable: true,
createdAt: '2026-01-04T12:00:00Z'
},
installments: 1,
pix: {expiresInSeconds: 3600},
boleto: {expiresInDays: 3},
shipping: {
address: {
street: 'Av. Brigadeiro Faria Lima',
streetNumber: '1811',
complement: 'Conj 1119',
neighborhood: 'Itaim Bibi',
city: 'São Paulo',
state: 'SP',
zipCode: '01452001',
country: 'BR'
},
fee: 0,
deliveryDate: '2026-01-10'
},
postbackUrl: 'https://webhook.minhaloja.com/bee',
traceable: false,
ip: '189.10.20.30',
externalRef: 'order_123',
splits: [{recipientId: 321, amount: 500, netAmount: 475}]
})
};
fetch('https://api.conta.paybeehive.com.br/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conta.paybeehive.com.br/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 500,
'paymentMethod' => 'credit_card',
'customer' => [
'name' => 'Bruce Wayne',
'email' => 'bruce@wayne.com',
'document' => [
'number' => '12345678909',
'type' => 'cpf'
],
'externalRef' => 'cust_ext_001',
'phone' => '+5511999999999',
'birthdate' => '1990-01-01',
'address' => [
'street' => 'Av. Brigadeiro Faria Lima',
'streetNumber' => '1811',
'complement' => 'Conj 1119',
'neighborhood' => 'Itaim Bibi',
'city' => 'São Paulo',
'state' => 'SP',
'zipCode' => '01452001',
'country' => 'BR'
]
],
'items' => [
[
'title' => 'Produto X',
'unitPrice' => 5000,
'quantity' => 1,
'tangible' => true,
'externalRef' => 'item_ext_001'
]
],
'metadata' => [
'provider' => 'CustomCheckout',
'user_email' => 'cliente@exemplo.com',
'order_id' => 'CC-20260121-000392',
'checkout_url' => 'https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392',
'shop_url' => 'https://minhaloja.com.br'
],
'card' => [
'id' => 10,
'hash' => 'card_hash_abc',
'number' => '4111111111111111',
'holderName' => 'Bruce Wayne',
'expirationMonth' => 12,
'expirationYear' => 2030,
'cvv' => '123',
'brand' => 'visa',
'lastDigits' => '1111',
'reusable' => true,
'createdAt' => '2026-01-04T12:00:00Z'
],
'installments' => 1,
'pix' => [
'expiresInSeconds' => 3600
],
'boleto' => [
'expiresInDays' => 3
],
'shipping' => [
'address' => [
'street' => 'Av. Brigadeiro Faria Lima',
'streetNumber' => '1811',
'complement' => 'Conj 1119',
'neighborhood' => 'Itaim Bibi',
'city' => 'São Paulo',
'state' => 'SP',
'zipCode' => '01452001',
'country' => 'BR'
],
'fee' => 0,
'deliveryDate' => '2026-01-10'
],
'postbackUrl' => 'https://webhook.minhaloja.com/bee',
'traceable' => false,
'ip' => '189.10.20.30',
'externalRef' => 'order_123',
'splits' => [
[
'recipientId' => 321,
'amount' => 500,
'netAmount' => 475
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conta.paybeehive.com.br/v1/transactions"
payload := strings.NewReader("{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.conta.paybeehive.com.br/v1/transactions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conta.paybeehive.com.br/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 12345,
"amount": 500,
"refundedAmount": 0,
"companyId": 77,
"installments": 1,
"paymentMethod": "credit_card",
"status": "paid",
"postbackUrl": "https://webhook.minhaloja.com/bee",
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"traceable": false,
"secureId": "sec_abc123",
"secureUrl": "https://checkout.paybeehive.com/sec_abc123",
"createdAt": "2026-01-04T12:00:00Z",
"updatedAt": "2026-01-04T12:00:10Z",
"paidAt": "2026-01-04T12:00:20Z",
"ip": "189.10.20.30",
"externalRef": "order_123",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"id": 123,
"createdAt": "2026-01-04T12:00:00Z"
},
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": true,
"createdAt": "2026-01-04T12:00:00Z"
},
"boleto": null,
"pix": null,
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"refusedReason": null,
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": true,
"externalRef": "item_ext_001"
}
],
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
],
"refunds": [
{
"id": 999,
"amount": 5000,
"createdAt": "2026-01-04T12:10:00Z"
}
],
"fee": {
"fixedAmount": 199,
"spreadPercentage": 349,
"estimatedFee": 320,
"netAmount": 4680
}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}Criar transação
Cria uma transação (cartão de crédito, Pix ou boleto).
curl --request POST \
--url https://api.conta.paybeehive.com.br/v1/transactions \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 500,
"paymentMethod": "credit_card",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
}
},
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": true,
"externalRef": "item_ext_001"
}
],
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": true,
"createdAt": "2026-01-04T12:00:00Z"
},
"installments": 1,
"pix": {
"expiresInSeconds": 3600
},
"boleto": {
"expiresInDays": 3
},
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"postbackUrl": "https://webhook.minhaloja.com/bee",
"traceable": false,
"ip": "189.10.20.30",
"externalRef": "order_123",
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
]
}
'import requests
url = "https://api.conta.paybeehive.com.br/v1/transactions"
payload = {
"amount": 500,
"paymentMethod": "credit_card",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
}
},
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": True,
"externalRef": "item_ext_001"
}
],
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": True,
"createdAt": "2026-01-04T12:00:00Z"
},
"installments": 1,
"pix": { "expiresInSeconds": 3600 },
"boleto": { "expiresInDays": 3 },
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"postbackUrl": "https://webhook.minhaloja.com/bee",
"traceable": False,
"ip": "189.10.20.30",
"externalRef": "order_123",
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
amount: 500,
paymentMethod: 'credit_card',
customer: {
name: 'Bruce Wayne',
email: 'bruce@wayne.com',
document: {number: '12345678909', type: 'cpf'},
externalRef: 'cust_ext_001',
phone: '+5511999999999',
birthdate: '1990-01-01',
address: {
street: 'Av. Brigadeiro Faria Lima',
streetNumber: '1811',
complement: 'Conj 1119',
neighborhood: 'Itaim Bibi',
city: 'São Paulo',
state: 'SP',
zipCode: '01452001',
country: 'BR'
}
},
items: [
{
title: 'Produto X',
unitPrice: 5000,
quantity: 1,
tangible: true,
externalRef: 'item_ext_001'
}
],
metadata: {
provider: 'CustomCheckout',
user_email: 'cliente@exemplo.com',
order_id: 'CC-20260121-000392',
checkout_url: 'https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392',
shop_url: 'https://minhaloja.com.br'
},
card: {
id: 10,
hash: 'card_hash_abc',
number: '4111111111111111',
holderName: 'Bruce Wayne',
expirationMonth: 12,
expirationYear: 2030,
cvv: '123',
brand: 'visa',
lastDigits: '1111',
reusable: true,
createdAt: '2026-01-04T12:00:00Z'
},
installments: 1,
pix: {expiresInSeconds: 3600},
boleto: {expiresInDays: 3},
shipping: {
address: {
street: 'Av. Brigadeiro Faria Lima',
streetNumber: '1811',
complement: 'Conj 1119',
neighborhood: 'Itaim Bibi',
city: 'São Paulo',
state: 'SP',
zipCode: '01452001',
country: 'BR'
},
fee: 0,
deliveryDate: '2026-01-10'
},
postbackUrl: 'https://webhook.minhaloja.com/bee',
traceable: false,
ip: '189.10.20.30',
externalRef: 'order_123',
splits: [{recipientId: 321, amount: 500, netAmount: 475}]
})
};
fetch('https://api.conta.paybeehive.com.br/v1/transactions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.conta.paybeehive.com.br/v1/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 500,
'paymentMethod' => 'credit_card',
'customer' => [
'name' => 'Bruce Wayne',
'email' => 'bruce@wayne.com',
'document' => [
'number' => '12345678909',
'type' => 'cpf'
],
'externalRef' => 'cust_ext_001',
'phone' => '+5511999999999',
'birthdate' => '1990-01-01',
'address' => [
'street' => 'Av. Brigadeiro Faria Lima',
'streetNumber' => '1811',
'complement' => 'Conj 1119',
'neighborhood' => 'Itaim Bibi',
'city' => 'São Paulo',
'state' => 'SP',
'zipCode' => '01452001',
'country' => 'BR'
]
],
'items' => [
[
'title' => 'Produto X',
'unitPrice' => 5000,
'quantity' => 1,
'tangible' => true,
'externalRef' => 'item_ext_001'
]
],
'metadata' => [
'provider' => 'CustomCheckout',
'user_email' => 'cliente@exemplo.com',
'order_id' => 'CC-20260121-000392',
'checkout_url' => 'https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392',
'shop_url' => 'https://minhaloja.com.br'
],
'card' => [
'id' => 10,
'hash' => 'card_hash_abc',
'number' => '4111111111111111',
'holderName' => 'Bruce Wayne',
'expirationMonth' => 12,
'expirationYear' => 2030,
'cvv' => '123',
'brand' => 'visa',
'lastDigits' => '1111',
'reusable' => true,
'createdAt' => '2026-01-04T12:00:00Z'
],
'installments' => 1,
'pix' => [
'expiresInSeconds' => 3600
],
'boleto' => [
'expiresInDays' => 3
],
'shipping' => [
'address' => [
'street' => 'Av. Brigadeiro Faria Lima',
'streetNumber' => '1811',
'complement' => 'Conj 1119',
'neighborhood' => 'Itaim Bibi',
'city' => 'São Paulo',
'state' => 'SP',
'zipCode' => '01452001',
'country' => 'BR'
],
'fee' => 0,
'deliveryDate' => '2026-01-10'
],
'postbackUrl' => 'https://webhook.minhaloja.com/bee',
'traceable' => false,
'ip' => '189.10.20.30',
'externalRef' => 'order_123',
'splits' => [
[
'recipientId' => 321,
'amount' => 500,
'netAmount' => 475
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.conta.paybeehive.com.br/v1/transactions"
payload := strings.NewReader("{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.conta.paybeehive.com.br/v1/transactions")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.conta.paybeehive.com.br/v1/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 500,\n \"paymentMethod\": \"credit_card\",\n \"customer\": {\n \"name\": \"Bruce Wayne\",\n \"email\": \"bruce@wayne.com\",\n \"document\": {\n \"number\": \"12345678909\",\n \"type\": \"cpf\"\n },\n \"externalRef\": \"cust_ext_001\",\n \"phone\": \"+5511999999999\",\n \"birthdate\": \"1990-01-01\",\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n }\n },\n \"items\": [\n {\n \"title\": \"Produto X\",\n \"unitPrice\": 5000,\n \"quantity\": 1,\n \"tangible\": true,\n \"externalRef\": \"item_ext_001\"\n }\n ],\n \"metadata\": {\n \"provider\": \"CustomCheckout\",\n \"user_email\": \"cliente@exemplo.com\",\n \"order_id\": \"CC-20260121-000392\",\n \"checkout_url\": \"https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392\",\n \"shop_url\": \"https://minhaloja.com.br\"\n },\n \"card\": {\n \"id\": 10,\n \"hash\": \"card_hash_abc\",\n \"number\": \"4111111111111111\",\n \"holderName\": \"Bruce Wayne\",\n \"expirationMonth\": 12,\n \"expirationYear\": 2030,\n \"cvv\": \"123\",\n \"brand\": \"visa\",\n \"lastDigits\": \"1111\",\n \"reusable\": true,\n \"createdAt\": \"2026-01-04T12:00:00Z\"\n },\n \"installments\": 1,\n \"pix\": {\n \"expiresInSeconds\": 3600\n },\n \"boleto\": {\n \"expiresInDays\": 3\n },\n \"shipping\": {\n \"address\": {\n \"street\": \"Av. Brigadeiro Faria Lima\",\n \"streetNumber\": \"1811\",\n \"complement\": \"Conj 1119\",\n \"neighborhood\": \"Itaim Bibi\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"zipCode\": \"01452001\",\n \"country\": \"BR\"\n },\n \"fee\": 0,\n \"deliveryDate\": \"2026-01-10\"\n },\n \"postbackUrl\": \"https://webhook.minhaloja.com/bee\",\n \"traceable\": false,\n \"ip\": \"189.10.20.30\",\n \"externalRef\": \"order_123\",\n \"splits\": [\n {\n \"recipientId\": 321,\n \"amount\": 500,\n \"netAmount\": 475\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"id": 12345,
"amount": 500,
"refundedAmount": 0,
"companyId": 77,
"installments": 1,
"paymentMethod": "credit_card",
"status": "paid",
"postbackUrl": "https://webhook.minhaloja.com/bee",
"metadata": {
"provider": "CustomCheckout",
"user_email": "cliente@exemplo.com",
"order_id": "CC-20260121-000392",
"checkout_url": "https://seguro.minhaloja.com.br/checkout/sucesso?order_id=CC-20260121-000392",
"shop_url": "https://minhaloja.com.br"
},
"traceable": false,
"secureId": "sec_abc123",
"secureUrl": "https://checkout.paybeehive.com/sec_abc123",
"createdAt": "2026-01-04T12:00:00Z",
"updatedAt": "2026-01-04T12:00:10Z",
"paidAt": "2026-01-04T12:00:20Z",
"ip": "189.10.20.30",
"externalRef": "order_123",
"customer": {
"name": "Bruce Wayne",
"email": "bruce@wayne.com",
"document": {
"number": "12345678909",
"type": "cpf"
},
"externalRef": "cust_ext_001",
"phone": "+5511999999999",
"birthdate": "1990-01-01",
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"id": 123,
"createdAt": "2026-01-04T12:00:00Z"
},
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"card": {
"id": 10,
"hash": "card_hash_abc",
"number": "4111111111111111",
"holderName": "Bruce Wayne",
"expirationMonth": 12,
"expirationYear": 2030,
"cvv": "123",
"brand": "visa",
"lastDigits": "1111",
"reusable": true,
"createdAt": "2026-01-04T12:00:00Z"
},
"boleto": null,
"pix": null,
"shipping": {
"address": {
"street": "Av. Brigadeiro Faria Lima",
"streetNumber": "1811",
"complement": "Conj 1119",
"neighborhood": "Itaim Bibi",
"city": "São Paulo",
"state": "SP",
"zipCode": "01452001",
"country": "BR"
},
"fee": 0,
"deliveryDate": "2026-01-10"
},
"refusedReason": null,
"items": [
{
"title": "Produto X",
"unitPrice": 5000,
"quantity": 1,
"tangible": true,
"externalRef": "item_ext_001"
}
],
"splits": [
{
"recipientId": 321,
"amount": 500,
"netAmount": 475
}
],
"refunds": [
{
"id": 999,
"amount": 5000,
"createdAt": "2026-01-04T12:10:00Z"
}
],
"fee": {
"fixedAmount": 199,
"spreadPercentage": 349,
"estimatedFee": 320,
"netAmount": 4680
}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}{
"message": "Invalid request",
"code": "bad_request",
"details": {}
}Authorizations
Basic Authorization usando SECRET_KEY como usuário e "x" como senha.
Body
Valor em centavos (500 = R$ 5,00)
500
Forma de pagamento
credit_card, boleto, pix "credit_card"
Dados do cliente.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Obrigatório quando paymentMethod = credit_card
Show child attributes
Show child attributes
Número de parcelas. Obrigatório quando paymentMethod = credit_card
1
Obrigatório quando paymentMethod = pix
Show child attributes
Show child attributes
Obrigatório quando paymentMethod = boleto
Show child attributes
Show child attributes
Show child attributes
Show child attributes
"https://webhook.minhaloja.com/bee"
Se status de entrega será gerenciado pelo painel
"189.10.20.30"
"order_123"
Show child attributes
Show child attributes
Response
Transação criada
12345
500
0
77
1
"credit_card"
"paid"
"https://webhook.minhaloja.com/bee"
Show child attributes
Show child attributes
false
"sec_abc123"
"https://checkout.paybeehive.com/sec_abc123"
"2026-01-04T12:00:00Z"
"2026-01-04T12:00:10Z"
"2026-01-04T12:00:20Z"
"189.10.20.30"
"order_123"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
null
null
Show child attributes
Show child attributes
null
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes