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": "eea87443-91d0-4757-beeb-9f4335fd921d",
"paymentOwnerToken": "4c5932ce-2571-49d9-bf7c-c0a13481236e",
"documentId": "923315e7-c0b2-4918-bcd4-3650c1e74f35",
"paymentOperationId": "bb092b4a-b059-4604-907d-014ed32de38c",
"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. |
|
| MaximumPayments | integer |
None. |
|
| PaymentsAssigned | integer |
None. |
|
| LastPaymentRequired | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"paymentGroupId": "50cf287f-6bf4-4947-b7b3-7dd9f575229a",
"activityId": "32a2274f-fbe8-423e-8b71-a19cf02eb576",
"coordinatorDocumentId": "2d6b8e50-25f2-4866-93ab-d450fd103b8d",
"processState": 1,
"saleAmount": 4.0,
"appliedBalanceAmount": 5.0,
"amountToCollect": 6.0,
"controlVersion": "QEA=",
"parts": [
{
"$id": "2",
"documentId": "456f492b-2355-4f9b-93a9-f3ba232a203c",
"documentNumber": "sample string 2",
"partNumber": 3,
"partsCount": 4,
"amount": 5.0,
"partState": 1,
"controlVersion": "QEA="
},
{
"$ref": "2"
}
],
"invoiceDocumentIds": [
"ee905e67-3d06-4496-aace-b48e7b76aadf",
"7215463e-4e0b-4817-b6b5-c10dc845d293"
],
"maximumPayments": 7,
"paymentsAssigned": 8,
"lastPaymentRequired": true
}