curl --request POST \
--url https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}/split \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"split": [
{
"vendor_id": "test03",
"percentage": 10,
"tags": {
"product": "Dri-Fit trouser",
"size": "L",
"AWB": "NIKE12334"
}
}
],
"disable_split": true
}
'{
"message": "Order split created",
"status": "OK"
}Configuration
Split After Payment
The Split After Payment API splits payments to vendors after customers successfully complete a payment. After you receive a successful payment confirmation, wait 2 minutes before you call this API endpoint.
POST
/
easy-split
/
orders
/
{order_id}
/
split
curl --request POST \
--url https://sandbox.cashfree.com/pg/easy-split/orders/{order_id}/split \
--header 'Content-Type: application/json' \
--header 'x-api-version: <x-api-version>' \
--header 'x-client-id: <api-key>' \
--header 'x-client-secret: <api-key>' \
--data '
{
"split": [
{
"vendor_id": "test03",
"percentage": 10,
"tags": {
"product": "Dri-Fit trouser",
"size": "L",
"AWB": "NIKE12334"
}
}
],
"disable_split": true
}
'{
"message": "Order split created",
"status": "OK"
}Authorizations
XClientID & XClientSecretXClientID & XPartnerAPIKeyXClientID & XClientSignatureHeaderXPartnerMerchantID & XPartnerAPIKey
Client app ID. You can find your app id in the Merchant Dashboard.
Client secret key. You can find your secret key in the Merchant Dashboard.
Headers
Body
application/json
Request parameters to split an order after payment.
Was this page helpful?