POST api/tt_doc_sa/vip-split/external/payment/confirm
Request Information
URI Parameters
None.
Body Parameters
VipSplitExternalPaymentConfirmRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| pos_name | string |
Required String length: inclusive between 0 and 50 |
|
| id_rua | globally unique identifier |
None. |
|
| terminal_name | string |
Required String length: inclusive between 0 and 10 |
|
| payment_group_id | globally unique identifier |
None. |
|
| document_id | globally unique identifier |
None. |
|
| payment_operation_id | globally unique identifier |
None. |
|
| payment_mode | VipSplitPaymentMode |
None. |
|
| amount | decimal number |
None. |
|
| cash_received_amount | decimal number |
None. |
|
| terminal_response | socket_event_transaction_response_api |
None. |
|
| coordinator_control_version | Collection of byte |
Required Max length: 8 Min length: 8 |
|
| part_control_version | Collection of byte |
Required Max length: 8 Min length: 8 |
Request Formats
application/json, text/json
Sample:
{
"pos_name": "sample string 1",
"id_rua": "d989efd8-cf91-4763-9390-aea89fb652bf",
"terminal_name": "sample string 3",
"payment_group_id": "247ce70d-b25c-471e-bad4-71ca1a131ebd",
"document_id": "dc80458e-f5f0-4d31-862c-bd1d6aa32484",
"payment_operation_id": "83ec08d8-b788-4bb5-ac0c-8c4f30799526",
"payment_mode": 1,
"amount": 7.0,
"cash_received_amount": 1.0,
"terminal_response": {
"$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"
}
},
"coordinator_control_version": "QEA=",
"part_control_version": "QEA="
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
VipSplitExternalPaymentConfirmResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PaymentConfirmed | boolean |
None. |
|
| InvoiceGenerated | boolean |
None. |
|
| FinalizationPending | boolean |
None. |
|
| Code | string |
None. |
|
| Message | string |
None. |
|
| Process | VipSplitProcessResponse |
None. |
Response Formats
application/json, text/json
Sample:
{
"paymentConfirmed": true,
"invoiceGenerated": true,
"finalizationPending": true,
"code": "sample string 4",
"message": "sample string 5",
"process": {
"$id": "2",
"paymentGroupId": "a888fbe6-6192-45da-8ca9-e72739b8699f",
"activityId": "d08cd185-96c5-4214-971a-0b3bb7d7e145",
"coordinatorDocumentId": "32604e54-1765-4dda-a22e-a8ba081ed58e",
"processState": 1,
"saleAmount": 4.0,
"appliedBalanceAmount": 5.0,
"amountToCollect": 6.0,
"controlVersion": "QEA=",
"parts": [
{
"$id": "3",
"documentId": "826b4b55-48a6-45d8-98d5-268a12141075",
"documentNumber": "sample string 2",
"partNumber": 3,
"partsCount": 4,
"amount": 5.0,
"partState": 1,
"controlVersion": "QEA="
},
{
"$ref": "3"
}
],
"invoiceDocumentIds": [
"53815276-a989-40da-995f-6edc2f41e7a6",
"f127cad7-5fe8-4d25-a117-6c1e48948d3d"
],
"maximumPayments": 7,
"paymentsAssigned": 8,
"lastPaymentRequired": true
}
}