POST api/tt_doc_sa/vip-split/refund/confirm-terminal
Request Information
URI Parameters
None.
Body Parameters
VipSplitTerminalRefundResultRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| TerminalResponse | socket_event_transaction_response_api |
Required |
|
| PaymentGroupId | globally unique identifier |
None. |
|
| PaymentOwnerToken | globally unique identifier |
None. |
|
| SourceDocumentId | globally unique identifier |
None. |
|
| SourcePaymentLine | integer |
Range: inclusive between 1 and 2147483647 |
|
| RefundDocumentId | globally unique identifier |
None. |
|
| RefundOperationId | globally unique identifier |
None. |
|
| CoordinatorControlVersion | Collection of byte |
Required Max length: 8 Min length: 8 |
|
| SourceControlVersion | Collection of byte |
Required Max length: 8 Min length: 8 |
Request Formats
application/json, text/json
Sample:
{
"terminalResponse": {
"$id": "2",
"error": true,
"action": "sample string 2",
"status": "sample string 3",
"method": "sample string 4",
"message_code": "sample string 5",
"message": "sample string 6",
"payload": {
"$id": "3",
"action": "sample string 1",
"locator": "sample string 2",
"orderId": "sample string 3",
"terminal": "sample string 4",
"data": {
"$id": "4",
"orderId": "sample string 1",
"amount": 2.1,
"printReceipt": 3,
"transactionId": "sample string 4"
},
"metadata": {
"$id": "5",
"back_color": "sample string 1",
"order": 2
},
"result": {
"$id": "6",
"deviceId": "sample string 1",
"transactionId": "sample string 2",
"transactionType": "sample string 3",
"amount": 4,
"currencyCode": "sample string 5",
"transactionNumber": "sample string 6",
"result": 7,
"status": 8,
"paymentApp": "sample string 9",
"additionalData": {
"$id": "7",
"orderId": "sample string 1",
"transactionData": {
"$id": "8",
"type": "sample string 1",
"card": "sample string 2",
"terminal": "sample string 3",
"transactionDate": "sample string 4",
"state": "sample string 5",
"result": "sample string 6",
"responseCode": "sample string 7",
"authorizationNumber": "sample string 8",
"cardType": "sample string 9",
"transactionCounter": "sample string 10",
"appId": "sample string 11",
"appLabel": "sample string 12",
"isPinAuthenticated": true,
"isContactless": true,
"capturedMode": 15,
"authorisingCentre": "sample string 16",
"fucId": "sample string 17",
"arc": "sample string 18",
"transactionReference": "sample string 19",
"authenticationType": 20,
"transactionCurrencyCode": "sample string 21",
"location": "sample string 22",
"fucName": "sample string 23",
"modifiers": [
{
"$id": "9"
},
{
"$ref": "9"
}
],
"originalTransactionId": "sample string 24"
}
}
}
},
"metadata": {
"$ref": "5"
}
},
"paymentGroupId": "d6f88565-cdb4-4e18-80eb-12f18823180d",
"paymentOwnerToken": "fb56babd-6ef3-4fa4-b2bf-643510aaa67e",
"sourceDocumentId": "c0e1685f-0b4a-4e18-89cc-fd937e321c7f",
"sourcePaymentLine": 4,
"refundDocumentId": "da04934b-6079-4c04-b9d3-5e80bd597514",
"refundOperationId": "e596aa8b-299e-4c25-991a-3c1ea3b4badd",
"coordinatorControlVersion": "QEA=",
"sourceControlVersion": "QEA="
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VipSplitProcessResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentGroupId | globally unique identifier |
None. |
|
| ActivityId | globally unique identifier |
None. |
|
| CoordinatorDocumentId | globally unique identifier |
None. |
|
| ProcessState | DocSaProcessState |
None. |
|
| SaleAmount | decimal number |
None. |
|
| AppliedBalanceAmount | decimal number |
None. |
|
| AmountToCollect | decimal number |
None. |
|
| ControlVersion | Collection of byte |
None. |
|
| Parts | Collection of VipSplitPaymentPartResponse |
None. |
|
| InvoiceDocumentIds | Collection of globally unique identifier |
None. |
|
| MaximumPayments | integer |
None. |
|
| PaymentsAssigned | integer |
None. |
|
| LastPaymentRequired | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"paymentGroupId": "77f37c88-8223-4582-bb86-108c61b896c6",
"activityId": "cdd041fa-fd2b-4b3f-831d-fd14334e0077",
"coordinatorDocumentId": "f5d78c83-f768-4593-b852-b0a544bd9e6a",
"processState": 1,
"saleAmount": 4.0,
"appliedBalanceAmount": 5.0,
"amountToCollect": 6.0,
"controlVersion": "QEA=",
"parts": [
{
"$id": "2",
"documentId": "e28e61a4-4e87-4f36-9bbc-e498840870e7",
"documentNumber": "sample string 2",
"partNumber": 3,
"partsCount": 4,
"amount": 5.0,
"partState": 1,
"controlVersion": "QEA="
},
{
"$ref": "2"
}
],
"invoiceDocumentIds": [
"9ec95499-3e5d-4115-adc5-636d39266fe5",
"b4cd0186-fcdb-4677-8fee-f276875e83a7"
],
"maximumPayments": 7,
"paymentsAssigned": 8,
"lastPaymentRequired": true
}