---
page_source: https://juspay.io/in/docs/upi-merchant-stack/docs/transactions/update-split
page_title: Update Split
---

## API Version: default


# Update Split



If the transaction was initiated with the split type set as "later," this API can be utilized to declare the split for the original transaction after it has been completed.## Endpoints:
- Production: {{host}}/api/{{uri}}/merchants/transactions/settlement/split

## Request Type: 
POST

## Content-Type: 
application/json

## Authorization:

#### Basic Auth:
Auth example
- Value: MUQ2QUZEQzhFQTY0OUU5QTIxQzNFNTQwNkFDMEZCOg==
- Tags: required
## Headers:

#### jpupi-routing-id:
Header value should be same as of **merchantRequestId**  sent in request body
- Tags: String, Mandatory
## Sample Code Snippets:
### Code Snippets:

#### Shell Code Snippet:

```shell
{"success":false,"message":"No Data found for the given path"}
```

### Sample Request and Response:

#### Request:
```json
{"success":false,"message":"No Data found for the given path"}
```

#### Response:
```json
{"success":false,"message":"No Data found for the given path"}
```

## Body Parameters:
### Request Body:

#### merchantRequestId:
- Description: merchantRequestId of original request
- Value: value
- Tags: String, Mandatory

#### splitSettlementDetails:
- Description: The split settlement details shared by merchant
- Value:
  - **SplitType**:
    - Description: The type of split for this transaction. Can be AMOUNT, PERCENTAGE, DEFAULT, LATER.
    - Tags: String, Mandatory
  - **MerchantSplit**:
    - Description: Split share for merchant pool account.
    - Tags: String, Conditional
  - **PartnersSplit**:
    - Description: List of partners for which the split needs to be divided with the value.
    - Value:
      - **PartnerId**:
        - Description: The LSP id provided by the bank.
        - Tags: String, Mandatory
      - **Value**:
        - Description: Split share for LSP account. Decimal Value.
        - Tags: String, Mandatory
    - Tags: String, Conditional
- Tags: String, Mandatory

#### udfParameters:
- Description: Merchant Defined Parameters

Example: "{\"udf1\":\"value1\",\"udf2\":\"value2\",…}"**Note** : Few special characters are not allowed. Regex for the characters which are not allowed : **^[^/#-()*!%~`]+$** 
- Tags: Stringified JSON, Optional
## API Responses:
### 200:

#### status:
- Description: API status
- Tags: String, Mandatory

#### responseCode:
- Description: API Response Code
- Tags: String, Mandatory

#### responseMessage:
- Description: API Response Message
- Tags: String, Mandatory

#### payload:
- Value:
  - **MerchantId**:
    - Description: merchantId of the merchant
    - Tags: String, Mandatory
  - **MerchantChannelId**:
    - Description: merchanChanneltId of the merchant
    - Tags: String, Mandatory
  - **MerchantRequestId**:
    - Description: merchantRequestId of original request (As sent in request body)
    - Tags: String, Mandatory
  - **SplitSettlementDetails**:
    - Description: The split settlement details shared by merchant (As sent in request body)
    - Value:
      - **MerchantSplit**:
        - Description: Split share for merchant pool account.
        - Tags: String, Conditional
      - **PartnersSplit**:
        - Description: List of partners for which the split needs to be divided with the value.
        - Value:
          - **PartnerId**:
            - Description: The LSP id provided by the bank.
            - Tags: String, Mandatory
          - **Value**:
            - Description: Split share for LSP account. Decimal Value.
            - Tags: String, Mandatory
        - Tags: String, Conditional
      - **CustomerSplit**:
        - Description: Denotes the amount of refund issued to the customer.
        - Tags: String, Conditional
      - **SplitType**:
        - Description: The type of split for this transaction. Can be AMOUNT, PERCENTAGE, DEFAULT, LATER.
        - Tags: String, Mandatory
    - Tags: String, Mandatory
- Tags: String, Mandatory

#### udfParameters:
- Description: Udf parameters as passed in the request.Example: "{\"udf1\":\"value1\",\"udf2\":\"value2\",…}"
- Tags: Stringified JSON, Optional
