put https://uatoneapi.payu.in/payout/v2/smartSend/bulkUpload/transfers/
The smartSend API is used to process the uploaded .csv/.xlsx/.xls file from the dashboard. You need to use the Bulk File Upload API to upload the file containing the Smart Send Links. For more information, refer to Bulk File Upload API.
HTTP Method: POST
Environment
Test Environment | https://staging.payu.in/payout/v2/smartSend/bulkUpload/transfers/{fileId} |
Production Environment | https://payout.payumoney.com/payout/v2/smartSend/bulkUpload/transfers/{fileId} |
Sample request
curl --location --request PUT 'https://www.payu.in/payout/v2/smartSend/bulkUpload/transfers/267' \
--header 'authorization: Bearer d49b1172c6800273398d46ba4db53506fd6c17be7f08f958ea750db08d5ae59d' \
--header 'pid: 1111161'
Sample response
{
"status": 0,
"msg": null,
"code": null,
"data": {
"id": 267,
"fileName": "560f7a80-c7b4-4bce-8124-8ab926420a1e1626256058980.xlsx",
"merchantId": 1111161,
"displayName": "sampleBulkSmartSend.xlsx",
"totalRows": 3,
"successfulRows": 0,
"failedRows": 0,
"status": "IN_PROGRESS",
"addedOn": "2021-07-14T09:47:39.000+0000",
"updatedOn": "2021-07-14T10:01:44.135+0000",
"uploadedBy": "11eb-07b8-d41d2154-b089-02f413145cce",
"fileExportId": 26632,
"fileSource": "DASHBOARD_SMART_SEND"
}
}
Request header and parameters
Parameter | Description | Example |
---|---|---|
Authorization mandatory | String Specify the access token generated earlier in this parameter. | Bearer {access_token} |
pid mandatory | String Specify the payout merchant id provided while onboarding or creating Payout account. | 1111126 |
Content-Typemandatory | String Indicates the format in which the request is sent. | application/json |
Note:
The pid is payoutMerchantId, however it is different from the PayU merchant id. Check the Payouts Dashboard or call the PayU Customer Support if you don’t know your payoutsMerchantID.
Reference
- For the list of error messages and their description that you may encounter when Smart Send APIs integration, refer to Error Codes.
- For the sample request and responses, refer to Sample Request and Response for Bulk Upload APIs.