Fluent Commerce Logo
Docs

GraphQL Payment Queries

Essential knowledge

Intended Audience:

Technical User

Author:

Alexey Kaminskiy

Changed on:

18 Feb 2026

Overview

Sample Payment and Order payment-related GraphQL queries that can be used on a daily basis, with examples focused on precise amount fields.

Key points

  • Sample queries on the following:
    • Order by ID with precise amount details
    • Payments with a precise amount

Order by ID with precise amount details

Retrieve an order based on `id`, including:
  • order `preciseTotalPrice`
  • related `financialTransactions` with `preciseAmount`
  • `fulfilmentChoice` with `preciseFulfilmentPrice`
  • order `items` with `preciseTotalPrice`
Example Query:
1query orderById ($id: ID!) {
2    orderById (id: $id) {
3        id
4        ref
5        type
6        status
7        preciseTotalPrice {
8            preciseAmount
9            scale
10            unscaledValue
11        }
12        financialTransactions {
13            edges {
14                node {
15                    id
16                    preciseAmount {
17                        preciseAmount
18                        scale
19                        unscaledValue
20                    }
21                }
22            }
23        }
24        fulfilmentChoice {
25            pickupLocationRef
26            currency
27            preciseFulfilmentPrice {
28                preciseAmount
29                scale
30                unscaledValue
31            }
32        }
33        items {
34            edges {
35                node{
36                    id
37                    ref
38                    preciseTotalPrice {
39                        preciseAmount
40                        scale
41                        unscaledValue
42                     }
43                }
44            }
45        }
46    }
47}
Example Parameters:
1{
2  "id": 17
3}
Example Response:
1{
2    "data": {
3        "orderById": {
4            "id": "17",
5            "ref": "CC_123_813-868-3857",
6            "type": "CC",
7            "status": "CREATED",
8            "preciseTotalPrice": {
9                "preciseAmount": 40.5,
10                "scale": 1,
11                "unscaledValue": 405
12            },
13            "financialTransactions": {
14                "edges": [
15                    {
16                        "node": {
17                            "id": "21",
18                            "preciseAmount": {
19                                "preciseAmount": 50.5,
20                                "scale": 1,
21                                "unscaledValue": 505
22                            }
23                        }
24                    }
25                ]
26            },
27            "fulfilmentChoice": {
28                "pickupLocationRef": "F_M1770889712367",
29                "currency": "AUD",
30                "preciseFulfilmentPrice": {
31                    "preciseAmount": 10,
32                    "scale": 0,
33                    "unscaledValue": 10
34                }
35            },
36            "items": {
37                "edges": [
38                    {
39                        "node": {
40                            "id": "17",
41                            "ref": "AH8050-1770889712367",
42                            "preciseTotalPrice": {
43                                "preciseAmount": 25.5,
44                                "scale": 1,
45                                "unscaledValue": 255
46                            }
47                        }
48                    },
49                    {
50                        "node": {
51                            "id": "18",
52                            "ref": "AH8050-1770889712367",
53                            "preciseTotalPrice": {
54                                "preciseAmount": 15,
55                                "scale": 0,
56                                "unscaledValue": 15
57                            }
58                        }
59                    }
60                ]
61            }
62        }
63    }
64}

Payments with a precise amount

Retrieve a list of payments, including `preciseAmount`.Example Query:
1query payments {
2    payments {
3        edges {
4            node {
5                id
6                ref
7                status
8                type
9                preciseAmount {
10                    preciseAmount
11                    scale
12                    unscaledValue
13                }
14            }
15        }
16    }
17}
Example Parameters:
1{
2  "id": "a358cb92-0f4b-4659-b24a-f48495fb19a5"
3}
Example Response:
1{
2    "data": {
3        "payments": {
4            "edges": [
5                {
6                    "node": {
7                        "id": "a358cb92-0f4b-4659-b24a-f48495fb19a5",
8                        "ref": "paymentRef_81c31557-49f5-43ac-847c-de67a53dd8a5",
9                        "status": "PRE_CAPTURED",
10                        "type": "PRE_CAPTURED",
11                        "preciseAmount": {
12                            "preciseAmount": 50.5,
13                            "scale": 1,
14                            "unscaledValue": 505
15                        }
16                    }
17                }
18            ]
19        }
20    }
21}