Let's retrieve a single collection

via it's session_id

When a merchant or customers recieves a new collection, a session_id is generated in reference to that transaction, this reference is further used to retrieve that singular collection, the session_id is always unique, so a single session_id can only reference a single collection.

To retrieve a collection the session_id is parsed in the request body just as shown in the example below.

Example

axios.post(https://integration.getravenbank.com/api/v1/transfers/create,
{
 	"session_id" : 123456,        
})
{
  "status": "success",
  "message": "collections returned successfully",
  "data": [
    {
      "id": 1,
      "email": "merchant@gmail.com",
      "bank": "057",
      "session_id": "1234566",
      "source": null,
      "amount": 1000,
      "account_number": "2080322348",
      "created_at": "2022-06-02T15:20:38.000Z",
      "updated_at": "2022-06-02T15:20:38.000Z",
      "deleted_at": null
    },
    {
      "id": 2,
      "email": "merchant@gmail.com",
      "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
    }
  ]
}
πŸ‘

Try it in the console

Click here to try it