Visualizar transação de pedido
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id} \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'import requests
url = "https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}"
headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};
fetch('https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}', 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.dooki.com.br/v2/{alias}/checkout/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"customer_id": 123,
"payment_id": 123,
"affiliation_id": 123,
"marketplace_id": 123,
"marketplace_account_id": 123,
"authorized": true,
"captured": true,
"cancelled": true,
"can_be_captured": true,
"can_be_cancelled": true,
"gateway_transaction_id": 123,
"gateway_order_id": 123,
"gateway_authorization_code": "<string>",
"gateway_billet_id": 123,
"amount": 123,
"buyer_amount": 123,
"installment_value": 123,
"buyer_installment_value": 123,
"installments": 123,
"installment_formated": "<string>",
"buyer_installment_formated": "<string>",
"status": "<string>",
"error_message": "<string>",
"bank_name": "<string>",
"bank_alias": "<string>",
"truncated_card": "<string>",
"holder_name": "<string>",
"holder_document": "<string>",
"billet_url": "<string>",
"billet_barcode": "<string>",
"billet_date": "<string>",
"billet_our_number": "<string>",
"billet_document_number": "<string>",
"billet_whatsapp_link": "<string>",
"antifraud_sale_id": 123,
"antifraud_status": "<string>",
"antifraud_score": "<string>",
"sent_to_antifraud": "<string>",
"total_logs": 123,
"error_code": 123,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"capture_date": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"authorized_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"captured_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"cancelled_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"payment": {
"data": {
"id": 123,
"alias": "<string>",
"name": "<string>",
"has_config": true,
"active_config": true,
"is_credit_card": true,
"is_deposit": true,
"is_billet": true,
"is_pix": true,
"is_pix_in_installments": true,
"is_wallet": true,
"icon_url": "<string>"
}
},
"metadata": [
{
"key": "discount_highlight",
"value": "pix"
}
]
}
],
"meta": {
"pagination": {
"total": "10",
"count": "30",
"per_page": "10",
"current_page": "1",
"total_pages": "3",
"links": {
"previous": "",
"next": ""
}
}
}
}Transações
Visualizar transação de pedido
Obtém os detalhes de uma transação de checkout identificada pelo ID
GET
/
{alias}
/
checkout
/
transactions
/
{id}
Visualizar transação de pedido
curl --request GET \
--url https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id} \
--header 'User-Secret-Key: <api-key>' \
--header 'User-Token: <api-key>'import requests
url = "https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}"
headers = {
"User-Token": "<api-key>",
"User-Secret-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'User-Token': '<api-key>', 'User-Secret-Key': '<api-key>'}
};
fetch('https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}', 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.dooki.com.br/v2/{alias}/checkout/transactions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"User-Secret-Key: <api-key>",
"User-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("User-Token", "<api-key>")
req.Header.Add("User-Secret-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}")
.header("User-Token", "<api-key>")
.header("User-Secret-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dooki.com.br/v2/{alias}/checkout/transactions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["User-Token"] = '<api-key>'
request["User-Secret-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": 123,
"customer_id": 123,
"payment_id": 123,
"affiliation_id": 123,
"marketplace_id": 123,
"marketplace_account_id": 123,
"authorized": true,
"captured": true,
"cancelled": true,
"can_be_captured": true,
"can_be_cancelled": true,
"gateway_transaction_id": 123,
"gateway_order_id": 123,
"gateway_authorization_code": "<string>",
"gateway_billet_id": 123,
"amount": 123,
"buyer_amount": 123,
"installment_value": 123,
"buyer_installment_value": 123,
"installments": 123,
"installment_formated": "<string>",
"buyer_installment_formated": "<string>",
"status": "<string>",
"error_message": "<string>",
"bank_name": "<string>",
"bank_alias": "<string>",
"truncated_card": "<string>",
"holder_name": "<string>",
"holder_document": "<string>",
"billet_url": "<string>",
"billet_barcode": "<string>",
"billet_date": "<string>",
"billet_our_number": "<string>",
"billet_document_number": "<string>",
"billet_whatsapp_link": "<string>",
"antifraud_sale_id": 123,
"antifraud_status": "<string>",
"antifraud_score": "<string>",
"sent_to_antifraud": "<string>",
"total_logs": 123,
"error_code": 123,
"created_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"updated_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"capture_date": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"authorized_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"captured_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"cancelled_at": {
"date": "2000-08-17 10:24:24",
"timezone_type": 3,
"timezone": "America/Sao_Paulo"
},
"payment": {
"data": {
"id": 123,
"alias": "<string>",
"name": "<string>",
"has_config": true,
"active_config": true,
"is_credit_card": true,
"is_deposit": true,
"is_billet": true,
"is_pix": true,
"is_pix_in_installments": true,
"is_wallet": true,
"icon_url": "<string>"
}
},
"metadata": [
{
"key": "discount_highlight",
"value": "pix"
}
]
}
],
"meta": {
"pagination": {
"total": "10",
"count": "30",
"per_page": "10",
"current_page": "1",
"total_pages": "3",
"links": {
"previous": "",
"next": ""
}
}
}
}Was this page helpful?
⌘I