Get a purchase's payment and allocation breakdown
Return the payment for one purchase with its per-merchant allocations, refunds, transfers and disputes; all amounts are integer minor units with their currency. Requires the finance:read scope. Returns 404 when the purchase has no payment in this workspace.
GET
/
v1
/
finance
/
purchases
/
{purchase_id}
Get a purchase's payment and allocation breakdown
curl --request GET \
--url https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_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.ignite-checkout.ai/v1/finance/purchases/{purchase_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_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))
}{
"allocations": [
{
"child_order_id": "mord_example",
"fee_legs": [
{
"agreement_id": "agr_example_platform",
"amount_minor": 996,
"beneficiary": "ignite",
"beneficiary_role": "ignite",
"clawback": "proportional",
"funded_by": "merchant_gross",
"gross_amount_minor": 1245,
"key": "platform_fee",
"maturity_days": 14,
"payer": "merchant",
"version": 1
},
{
"agreement_id": "agr_example_client",
"amount_minor": 249,
"beneficiary": "tenant:ten_example",
"beneficiary_role": "tenant",
"clawback": "proportional",
"funded_by": "platform_fee",
"gross_amount_minor": 249,
"key": "client_share",
"maturity_days": 30,
"payer": "ignite",
"version": 1
}
],
"gross_minor": 27720,
"id": "alc_example",
"merchant_id": "mer_example",
"net_merchant_minor": 24087,
"processor_fee_finalized": false,
"processor_fee_minor": 0,
"refunded_minor": 2500,
"settlement_policy": {
"hold_days": 0,
"id": null,
"merchant_share_bps": 0,
"revision": 0
},
"status": "held"
}
],
"disputes": [],
"payment": {
"amount_minor": 27720,
"attempt_id": "pur_example",
"captured": true,
"client_secret": null,
"currency": "AED",
"failure_reason": null,
"id": "pay_example",
"provider": "sandbox",
"provider_ref": "pi_sbx_example",
"references": {
"app_id": "app_example",
"environment": "sandbox",
"ignite_payment_id": "pay_example",
"provider": "sandbox",
"provider_payment_id": "pi_sbx_example",
"purchase_id": "pur_example",
"tenant_id": "ten_example"
},
"status": "succeeded"
},
"recovery_obligations": [],
"refunds": [
{
"amount_minor": 2500,
"child_order_id": "mord_example",
"components": [
{
"amount_minor": 90,
"beneficiary": "ignite",
"key": "platform_fee"
},
{
"amount_minor": 22,
"beneficiary": "tenant:ten_example",
"key": "client_share"
},
{
"amount_minor": 2388,
"beneficiary": "merchant",
"key": "merchant_net"
}
],
"currency": "AED",
"external_ref": "return-8841",
"id": "rfd_example",
"provider_ref": "re_sbx_example",
"reason": "Shopper returned item",
"requires_recovery": false,
"source": "client",
"status": "succeeded"
}
],
"settlement_instructions": [],
"tenant_recoveries": [],
"tenant_recoveries_truncated": false,
"tenant_transfers": [],
"transfers": []
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
MachineKeyCustomerOIDC
Response
Successful Response
Money movement for one purchase: charge, per-merchant allocations, transfers, refunds and recovery.
⌘I
Get a purchase's payment and allocation breakdown
curl --request GET \
--url https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_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.ignite-checkout.ai/v1/finance/purchases/{purchase_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_id}';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/finance/purchases/{purchase_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))
}{
"allocations": [
{
"child_order_id": "mord_example",
"fee_legs": [
{
"agreement_id": "agr_example_platform",
"amount_minor": 996,
"beneficiary": "ignite",
"beneficiary_role": "ignite",
"clawback": "proportional",
"funded_by": "merchant_gross",
"gross_amount_minor": 1245,
"key": "platform_fee",
"maturity_days": 14,
"payer": "merchant",
"version": 1
},
{
"agreement_id": "agr_example_client",
"amount_minor": 249,
"beneficiary": "tenant:ten_example",
"beneficiary_role": "tenant",
"clawback": "proportional",
"funded_by": "platform_fee",
"gross_amount_minor": 249,
"key": "client_share",
"maturity_days": 30,
"payer": "ignite",
"version": 1
}
],
"gross_minor": 27720,
"id": "alc_example",
"merchant_id": "mer_example",
"net_merchant_minor": 24087,
"processor_fee_finalized": false,
"processor_fee_minor": 0,
"refunded_minor": 2500,
"settlement_policy": {
"hold_days": 0,
"id": null,
"merchant_share_bps": 0,
"revision": 0
},
"status": "held"
}
],
"disputes": [],
"payment": {
"amount_minor": 27720,
"attempt_id": "pur_example",
"captured": true,
"client_secret": null,
"currency": "AED",
"failure_reason": null,
"id": "pay_example",
"provider": "sandbox",
"provider_ref": "pi_sbx_example",
"references": {
"app_id": "app_example",
"environment": "sandbox",
"ignite_payment_id": "pay_example",
"provider": "sandbox",
"provider_payment_id": "pi_sbx_example",
"purchase_id": "pur_example",
"tenant_id": "ten_example"
},
"status": "succeeded"
},
"recovery_obligations": [],
"refunds": [
{
"amount_minor": 2500,
"child_order_id": "mord_example",
"components": [
{
"amount_minor": 90,
"beneficiary": "ignite",
"key": "platform_fee"
},
{
"amount_minor": 22,
"beneficiary": "tenant:ten_example",
"key": "client_share"
},
{
"amount_minor": 2388,
"beneficiary": "merchant",
"key": "merchant_net"
}
],
"currency": "AED",
"external_ref": "return-8841",
"id": "rfd_example",
"provider_ref": "re_sbx_example",
"reason": "Shopper returned item",
"requires_recovery": false,
"source": "client",
"status": "succeeded"
}
],
"settlement_instructions": [],
"tenant_recoveries": [],
"tenant_recoveries_truncated": false,
"tenant_transfers": [],
"transfers": []
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}