Retrieve all collection's belonging to a merchant
As a merchant, you can retrieve all the collections belonging to you by placing a GET request to the collections endpoint just as shown in the example below.
Example
curl --location --request GET 'https://integrations.getravenbank.com/v1/merchants/collections'
{
"status": "success",
"message": "collections returned successfully",
"data": [
{
"id": 1,
"email": "[email protected]",
"bank": "057",
"session_id": "1234566",
"source": null,
"amount": 1000,
"account_number": "2282320349",
"created_at": "2022-06-02T15:20:38.000Z",
"updated_at": "2022-06-02T15:20:38.000Z",
"deleted_at": null
},
{
"id": 2,
"email": "[email protected]",
"bank": "057",
"session_id": "214",
"source": null,
"amount": 10000,
"account_number": "1234567",
"created_at": "2022-06-02T15:23:08.000Z",
"updated_at": "2022-06-02T15:23:08.000Z",
"deleted_at": null
},
{
"id": 1,
"email": "[email protected]",
"bank": "057",
"session_id": "090",
"source": null,
"amount": 10089,
"account_number": "2282322346",
"created_at": "2022-06-02T15:49:25.000Z",
"updated_at": "2022-06-02T15:49:25.000Z",
"deleted_at": null
}
]
}
This request returns a response data with all the collections of the merchant
Try it in the console
Updated 28 days ago