Retrieve a payment
curl --request GET \
--url https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_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://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_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 => [
"Authorization: Bearer <token>"
],
]);
$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://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"support_email": "<string>",
"id": "<string>",
"amount": 0,
"amount_display": "<string>",
"listed_amount": 0,
"chain": "<string>",
"chain_id": 123,
"pay_to_address": "<string>",
"tx_hash": "<string>",
"explorer_url": "<string>",
"button": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"date_added": "2023-11-07T05:31:56Z",
"date_last_modified": "2023-11-07T05:31:56Z",
"fee_bps": 4611686018427388000,
"fee_amount": 4611686018427388000,
"status": "pending",
"amount_nonce": 0,
"credited_amount": 0,
"asset": "<string>",
"payer_address": "<string>",
"block_number": 0,
"settlement_path": "erc20",
"reference": "<string>",
"metadata": "<unknown>",
"origin": "<string>",
"source_type": "<string>",
"source_id": "<string>",
"last_error": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}Payments
Retrieve a payment
Retrieve a payment owned by the API key’s organization. Use the id from creation as public_id. This response uses asset (not currency) and includes settlement details.
GET
/
api
/
v1
/
payments
/
manage
/
intents
/
{public_id}
/
Retrieve a payment
curl --request GET \
--url https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_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://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_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 => [
"Authorization: Bearer <token>"
],
]);
$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://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox-api.gochameleon.xyz/api/v1/payments/manage/intents/{public_id}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"support_email": "<string>",
"id": "<string>",
"amount": 0,
"amount_display": "<string>",
"listed_amount": 0,
"chain": "<string>",
"chain_id": 123,
"pay_to_address": "<string>",
"tx_hash": "<string>",
"explorer_url": "<string>",
"button": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"date_added": "2023-11-07T05:31:56Z",
"date_last_modified": "2023-11-07T05:31:56Z",
"fee_bps": 4611686018427388000,
"fee_amount": 4611686018427388000,
"status": "pending",
"amount_nonce": 0,
"credited_amount": 0,
"asset": "<string>",
"payer_address": "<string>",
"block_number": 0,
"settlement_path": "erc20",
"reference": "<string>",
"metadata": "<unknown>",
"origin": "<string>",
"source_type": "<string>",
"source_id": "<string>",
"last_error": "<string>",
"confirmed_at": "2023-11-07T05:31:56Z"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}{
"code": "<string>",
"message": "<string>",
"details": null,
"request_id": "<string>"
}Authorizations
Response
Payment and settlement details
The merchant's view: everything public, plus their own fields.