Create Smart Send Link

This Api creates the smart send link

Request Headers

Key

Description

Data Type

Mandatory

Possible Value

Authorization

Access token generated earlier.

String

Yes

Bearer {access_token}

pid

This is the merchant id provided while onboarding/creating payout account

String

Yes

Request Body

Key

Description

Data Type

Mandatory

Possible Value

expiryDate

Expiry Date of linl

By default - 7 days

Date

No

2021-07-24T18:18:10.000Z

custName

Beneficiary Name

String

Yes

"ABC"

custMobile

Beneficiary Mobile No.

String

No

9999999999

custEmail

Beneficiary Email

String

No

xyz@email.com

description

Purpose of Payout

String

Yes

Refund

merchantRefId

Merchant Reference Id

String

Yes

This should be unique for every link

amount

Amount of payout

Double

Yes

10

disableApprovalFlow

This flag disables approval flow for a particular payout transaction (valid if approval flow is set to OPTIONAL)

Boolean

No

false/true

Note: The API accepts the following date pattern:

yyyy-MM-dd'T'HH:mm:ss.000Z

Note: At least one out of mobile no/email is required for creating a smart send link.

Example

Content-Type : application/json

Method: POST

Curl:

curl --location --request POST 'https://oneapi.payu.in/payout/v2/smartSend/link' \
--header 'authorization: Bearer f596252f5ccfeb775071b1202a80328d40bf58cf0c468f150220d16dce9deeee' \
--header 'pid: 1111312' \
--header 'Content-Type: application/json' \
--data-raw '{
    "amount": "1",
    "merchantRefId": "TEST00020",
    "custName": "DIVIK",
    "custMobile": "9868888568",
    "description": "TEST",
    "expiryDate": "2021-07-23T10:00:49.778Z"
}'

Response:

{
	"status": 0,
	"msg": "Success",
	"code": null,
	"data": {
		"link": "https://test.payumoney.com/url/1IOrXuzqo5KH",
		"linkId": "D9tCcL3ICHYsby5Op1BXv9vETLDvfiExyXAC9jf/lQ2xTIIUAyREa2ZN3VbrMmFx",
		"expiryDate": "2021-07-21T12:19:04.882+0000"
	}
}

Last updated