Collection is a group of your payments.
Method | Desciption | URI |
---|---|---|
Create Collection | /api/v2/collections |
|
Get List Collections | /api/v2/collections |
|
Get Collection By Id | /api/v2/collections/{CODE} |
|
Update Collection | /api/v2/collections/{ID} |
Key | Value |
---|---|
Accept | application/json |
Content-Type | application/json |
Authorization | Bearer {ACCESS-TOKEN} |
Method | URI |
---|---|
/api/v2/collections |
Key | Type | Required |
---|---|---|
Name | string |
Yes |
Key | Type |
---|---|
organization | /api/v2/collections?include=organization |
{
'name' : 'Collection Name'
}
{success} Success code :
200
{
"success": true,
"data": {
"name": "new collection",
"code": "HcGmbt3f",
"organization_id": 1,
"webhook_url": "https://malakatpay.com/malakatpay_gateway",
"redirect_url": "https://malakatpay.com/malakatpay_gateway",
"updated_at": "2020-06-23 13:03:15",
"created_at": "2020-06-23 13:03:15",
"id": 660
},
"errors": null,
"meta": {
"timestamp": "2020-06-23 13:03:15 UTC",
"timezone": "UTC"
}
}
{info} For Error Reference, Related guide:
Errors
Method | URI |
---|---|
/api/v2/collections |
{success} Success code :
200
{
"current_page": 1,
"data": [
{
"name": "new collection",
"code": "HcGmbt3f",
"organization_id": 1,
"webhook_url": "https://malakatpay.com/malakatpay_gateway",
"redirect_url": "https://malakatpay.com/malakatpay_gateway",
"updated_at": "2020-06-23 13:03:15",
"created_at": "2020-06-23 13:03:15",
"id": 660
}
],
"first_page_url": "https://malakatpay.com/api/collections?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "https://malakatpay.com/api/collections?page=1",
"next_page_url": null,
"path": "https://malakatpay.com/api/collections",
"per_page": 1,
"prev_page_url": null,
"to": 1,
"total": 1
}
{info} For Error Reference, Related guide:
Errors
Method | URI |
---|---|
/api/v2/collections/{CODE) |
{success} Success code :
200
{
"success": true,
"data": {
"name": "new collection",
"code": "HcGmbt3f",
"organization_id": 1,
"webhook_url": "https://malakatpay.com/malakatpay_gateway",
"redirect_url": "https://malakatpay.com/malakatpay_gateway",
"updated_at": "2020-06-23 13:03:15",
"created_at": "2020-06-23 13:03:15",
"id": 660
},
"errors": null,
"meta": {
"timestamp": "2020-06-23 13:03:15 UTC",
"timezone": "UTC"
}
}
{info} For Error Reference, Related guide:
Errors
Method | URI |
---|---|
/api/v2/collections/{ID) |
{success} Success code :
200
{
"success": true,
"data": {
"name": "new collection",
"code": "HcGmbt3f",
"organization_id": 1,
"webhook_url": "https://malakatpay.com/malakatpay_gateway",
"redirect_url": "https://malakatpay.com/malakatpay_gateway",
"updated_at": "2020-06-23 13:03:15",
"created_at": "2020-06-23 13:03:15",
"id": 660
},
"errors": null,
"meta": {
"timestamp": "2020-06-23 13:03:15 UTC",
"timezone": "UTC"
}
}
{info} For Error Reference, Related guide:
Errors