get https://api.staging.vendy.money/public/transactions/payment-url/
Request:
Path Parameter | Type | Description |
---|---|---|
urlRef | String | Unique reference for the transaction |
Example request
curl --location 'https://api.vendy.money/transactions/6518564956061343757?businessId=1' \
--header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJqd3RpZCI6Ijc1NWU5Njg4LTk1NzgtNGYyZi05NTM3LTQ3NDFhYzIzYjEyZSIsImlhdCI6MTY4NTM2MTE0NCwiZXhwIjoxNjg2NTcwNzQ0LCJpc3MiOiJodHRwczovL3ZlbmR5Lm1vbmV5LmNvbS8iLCJqdGkiOiI3NTVlOTY4OC05NTc4LTRmMmYtOTUzNy00NzQxYWMyM2IxMmUifQ.sOp2MGo9HLeytMmSpS3XAOQlJ84jPxZcPnp9OipClwOcxHoTNcYR-Vnmw1tEJdw5X62gF3B0z8ZN_dr4uCKPTRZnPE22NiL45y0467A0Dkxrnag3LgUic8jp0sdpKakYxnFvC7uKJQSP52BEYTpC8EPG8bYogH0V6jHWtpCJcPU'
Response:
Field | Type | Description |
---|---|---|
status | Boolean | States if the request was successfully executed or not |
code | Integer | Internal code, success if 200 |
msg | String | A description of the status of the request |
data | Object | Transaction details |
Example response
{
"status": true,
"code": 200,
"msg": "Payment URL",
"data": {
"ref": "af8-5c6d",
"amount": 100,
"currency": "NGN",
"businessID": 6,
"chargeCustomer": null,
"isTest": true,
"meta": {
"ref": "af8-5c6d",
"url": "https://checkout.vendy.money/test_af8-5c6d"
},
"channel": "whatsapp"
}
}
Possible errors are;
Error code | Type | Description |
---|---|---|
327 | TRANSACTION_NOT_FOUND | Transaction not found |