Create Order
In the Pay In series product create order interface, split payments can be created by adding the Split-Payments parameter.
The interface is as follows:
In the Pay In series product create order interface, split payments can be created by adding the Split-Payments parameter.
The interface is as follows:
| Name | Type | Length | Required | Description |
|---|---|---|---|---|
| isSplit | Boolean | - | Yes | Whether to split-payments |
| splitAmountType | Integer | - | Yes | Split amount type 1: custom, 2: percentage |
| splitFeeType | Integer | - | Yes | Fee Type1 according to the split amount,2 by the particular merchant |
| splitFeePaidMerchantId | String | - | No | If the splitting fee is borne by a particular merchant, enter the merchant ID of that merchant here. |
| splitMerchantList | List<SplitMerchantInfo> | - | Yes | Split merchant list, with additional details displayed in SplitMerchantInfo. |
| Name | Type | Length | Required | Description |
|---|---|---|---|---|
| splitMerchantId | String | - | Yes | Merchant ID of the merchant being split for. |
| splitRatio | Integer | - | No | Proportion of split(%) e.g. 12 means 12%, Required if splitAmountType is 2 |
| splitAmount | Long | - | No | Split-Payments` Amount Unit of amount: cents Required if splitAmountType is 1 |
| remark | String | 100 | No | remark |