createFinancialTransaction GraphQL mutation Example
Essential knowledge
Author:
Randy Chan
Changed on:
6 May 2024
Overview
createFinancialTransaction GraphQL mutation Example
Key points
- createFinancialTransaction GraphQL mutation Example
1POST: {{fluentApiHost}}/graphql
2
3QUERY:
4
5mutation createFinancialTransaction ($input: CreateFinancialTransactionInput) {
6 createFinancialTransaction (input: $input) {
7 id
8 ref
9 type
10 status
11 workflowRef
12 workflowVersion
13 createdOn
14 updatedOn
15 total
16 currency
17 externalTransactionCode
18 externalTransactionId
19 cardType
20 paymentMethod
21 paymentProviderName
22 }
23}
24
25
26GRAPHQL VARIABLES:
27{
28 "input": {
29 "type": "SMALL_PAYMENT",
30 "cardType": "VISA2",
31 "ref": "202311210003",
32 "paymentMethod": "CARD",
33 "paymentProvider": "SOURCE1",
34 "externalTransactionCode": "EXT12333332",
35 "externalTransactionId": "EXTID9292922",
36 "amount": 1200.0,
37 "currency": "AUD",
38 "order": {
39 "id": "5004670"
40 }
41 }
42}
Language: graphqlschema
Name: createFinancialTransaction GraphQL Example
Description:
createFinancialTransaction GraphQL Example