POST api/tt_doc_sa/vip-split/payment/confirm-terminal
Request Information
URI Parameters
None.
Body Parameters
VipSplitTerminalPaymentConfirmRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentGroupId | globally unique identifier |
None. |
|
| PaymentOwnerToken | globally unique identifier |
None. |
|
| DocumentId | globally unique identifier |
None. |
|
| PaymentOperationId | globally unique identifier |
None. |
|
| TerminalResponse | socket_event_transaction_response_api |
Required |
|
| CoordinatorControlVersion | Collection of byte |
Required Max length: 8 Min length: 8 |
|
| PartControlVersion | Collection of byte |
Required Max length: 8 Min length: 8 |
Request Formats
application/json, text/json
Sample:
{
"paymentGroupId": "756f6a4e-b37d-451a-b72d-e3cdbfb78620",
"paymentOwnerToken": "04a756f4-869e-46a3-b948-7476b4841b9b",
"documentId": "71a3164d-8d66-4931-90d2-5e6787ef59f9",
"paymentOperationId": "afe24867-8c50-4a8e-8f25-db18ae997a29",
"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"
}
},
"coordinatorControlVersion": "QEA=",
"partControlVersion": "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. |
Response Formats
application/json, text/json
Sample:
{
"paymentGroupId": "ba7021eb-8db2-4a2f-b489-0301d65384b0",
"activityId": "42d08698-666f-4c39-8797-c5e55075c1d7",
"coordinatorDocumentId": "58e8c68a-0cdb-4baa-ae93-4848e4bc4bb4",
"processState": 1,
"saleAmount": 4.0,
"appliedBalanceAmount": 5.0,
"amountToCollect": 6.0,
"controlVersion": "QEA=",
"parts": [
{
"$id": "2",
"documentId": "bb55b6e4-6b44-4c75-a476-b637cb93b3bd",
"documentNumber": "sample string 2",
"partNumber": 3,
"partsCount": 4,
"amount": 5.0,
"partState": 1,
"controlVersion": "QEA="
},
{
"$ref": "2"
}
],
"invoiceDocumentIds": [
"f004b867-85d7-4d18-bcb9-2bfcf0e70229",
"5b307f75-eb55-43c6-9172-f0f13f24f90d"
]
}