Skip to main content

Initaite Transaction

Authentication

Basic Authentication

  • Username: Client Id
  • Password: Secret Key

Example Authorization Header:

Authorization: Basic eGV0dGxlXzgzMjg2NjU5YmRmNzBkZWEzMDUwMzcwNzE1MTYwMzA0MDo3YzE1ZDQyYTZhYjEyOTYzYWI4NzJhMzFkOTk4MDk1ZDMwNTAzNzA3MTUxNjMyMDg5

Request Body

{
"amount":"10",
"purpose":"others",
"mode":"IMPS",
"contactId":"CONT_1025707858831303A0FC",
"clientRefId":"IN3STAN4344517788",
"udf1":"" ,
"udf2":""
}

Request Parameters

ParameterTypeRequiredDescription
amountStringYesTransaction amount
purposeStringYesPurpose of the transaction (e.g., "others")
modeStringYesPayment mode (e.g., "IMPS")
contactIdStringYesID of the previously created contact
clientRefIdStringYesYour unique reference ID for this transaction
udf1StringNoUser-defined field 1 (optional)
udf2StringNoUser-defined field 2 (optional)

Request Examples

Request Examples

curl --location 'https://xyz.com/v1/service/payout/orders' --header 'Content-Type: application/json' --header 'Authorization: Basic U0FGRUVfYmNlOTQ4MmUxZmJlZmFiMzEwMjU2MjY2NTg5NTUyMDk6MjRlN2Y3NGMyNjUxZTI3ZGQwOTI0NTA5OTM5YWY5NTgxMDI1NjI2NjU4OTYyNDcx' --data '{
"amount":"10",
"purpose":"others",
"mode":"IMPS",
"contactId":"CONT_1025707858831303A0FC",
"clientRefId":"IN3STAN4344517788",
"udf1":"" ,
"udf2":""
}'

Response Examples

{
"code": "0x0200",
"message": "Order accepted successfully",
"status": "SUCCESS",
"data": {
"clientRefId": "IN3STAN4344517788",
"orderRefId": "REF307464872548520306F08",
"status": "queued"
}
}

Response Codes

The API uses the following response codes to indicate the status of requests:

CodeDescriptionMeaning
0x0200SUCCESSThe request was processed successfully.
0x0201UNAUTHORIZEDAuthentication failed or insufficient permissions.
0x0202FAILEDThe request processing failed for a reason other than those specifically identified.
0x0203MISSING_PARAMETERThe request is missing one or more required parameters.
0x0206PENDINGThe request has been received and is being processed, but processing has not yet completed.
0x0205SOMETHING_WENT_WRONGA server error occurred during processing of the request.