Utilize this API to generate orders with Olympus from your backend. This allows you to initiate transactions and collect payments seamlessly
Request
Body Params application/json
{
"orderId": "string",
"amount": {
"value": 1,
"currency": "string"
},
"returnUrl": "string",
"notifyUrl": "string",
"customerInfo": {
"firstName": "string",
"lastName": "string",
"address": {
"streetName": "string",
"city": "string",
"state": "string",
"country": "string",
"zipcode": "string"
},
"email": "string",
"phoneNumber": "string"
},
"customParameters": {
"property1": "string",
"property2": "string"
},
"description": "string",
"paymentDetail": {
"accountNumber": "stringstr",
"ifsc": "KKBK0000432"
}
}
Request samples
curl --location --request POST '/api/v0/orders' \
--header 'merchantAccessKey;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"orderId": "string",
"amount": {
"value": 1,
"currency": "string"
},
"returnUrl": "string",
"notifyUrl": "string",
"customerInfo": {
"firstName": "string",
"lastName": "string",
"address": {
"streetName": "string",
"city": "string",
"state": "string",
"country": "string",
"zipcode": "string"
},
"email": "string",
"phoneNumber": "string"
},
"customParameters": {
"property1": "string",
"property2": "string"
},
"description": "string",
"paymentDetail": {
"accountNumber": "stringstr",
"ifsc": "KKBK0000432"
}
}'
Responses
application/json {
"response_code": 0,
"response_message": "string",
"payload": {
"redirectionUrl": "string",
"orderId": "string"
}
}
Modified at 2024-07-30 10:44:09