POST api/tt_doc_sa/vip-split/external/start
Request Information
URI Parameters
None.
Body Parameters
VipSplitExternalStartRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| pos_name | string |
Required String length: inclusive between 0 and 50 |
|
| id_rua | globally unique identifier |
None. |
|
| payment_group_id | globally unique identifier |
None. |
|
| terminal_name | string |
Required String length: inclusive between 0 and 10 |
|
| parts_count | integer |
Range: inclusive between 0 and 2147483647 |
|
| custom_amounts | Collection of decimal number |
None. |
|
| distribution_mode | VipSplitDistributionMode |
None. |
|
| max_parts | integer |
None. |
|
| print_doc | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"pos_name": "sample string 1",
"id_rua": "42e24716-0474-48b8-9ae0-05735b27101f",
"payment_group_id": "6b26b9fb-c38c-42aa-bffd-d5ff0aa2a44e",
"terminal_name": "sample string 4",
"parts_count": 5,
"custom_amounts": [
1.0,
2.0
],
"distribution_mode": 0,
"max_parts": 1,
"print_doc": true
}
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": "febe264e-23f7-4e95-a801-2008884f0bf7",
"activityId": "36dc4f38-c3e9-42bb-abde-ba3c11fcd3b5",
"coordinatorDocumentId": "6df384ac-3ef9-40af-bef6-e60efa623c3d",
"processState": 1,
"saleAmount": 4.0,
"appliedBalanceAmount": 5.0,
"amountToCollect": 6.0,
"controlVersion": "QEA=",
"parts": [
{
"$id": "2",
"documentId": "33fd6356-27d0-4c8b-bc68-10430c48cc47",
"documentNumber": "sample string 2",
"partNumber": 3,
"partsCount": 4,
"amount": 5.0,
"partState": 1,
"controlVersion": "QEA="
},
{
"$ref": "2"
}
],
"invoiceDocumentIds": [
"939b1a1f-0a8e-462a-85e9-85a5b13ed4e1",
"1a1225c0-bf64-499d-890e-8c592edbaa4c"
]
}