post
https://apiwala.in/production/api/collection/order/create
create order to collect payment via upi intent
Header
| Name | Type | Value |
|---|---|---|
| api-key | string | (get it from api credentials in api panel) |
| content-type | string | application/json |
| accept | string | application/json |
$header = [
'accept: application/json',
'api-key: XdWCmd0NF1ZVklnVPegOdL59WkFM7o4h91UYPAt1',
'content-type: application/json',
];
Request Body Parameters
| Name | Type | Value |
|---|---|---|
| partner_id | integer | (Get in from api panel you api parner id) |
| apitxnid | String | Unique Id for every transaction |
| mobile | String | Customer mobile number |
| name | String | Customer name |
| String | Customer Email id | |
| amount | Double | Amount For Payin |
| callback | String | Your webhook url to received collection status and data |
$parameter = [
'partner_id' => '1',
'apitxnid' => 'UPI12345',
'mobile' => '1234567890',
'name' => 'test',
'email' => '[email protected]',
'amount' => '100',
'callback' => 'https://yourdomain.com'
];
$body_json_string = json_encode($parameter);
Response Body Parameters
| Name | type | Condition | Possible Value |
|---|---|---|---|
| statuscode | String | All Time | TXN / TUP / TXF / ERR |
| message | String | All Time | Transaction Response Message |
| upi_tr | String | In Case TXN | Upi collection reference id |
| upi_string | String | In Case TXN | Upi Intent to receive payment |
| upi_string_image | String | In case TXN | Url for show qr code, developer need to pass this string url directly to html src attribute of img tag. eg |