Account
Find Accounts
Get Started
API Reference
- Account
- Virtual Account
- Disbursement
- Transaction
Additional References
Account
Find Accounts
This endpoint returns all accounts belonging to the user.
curl --location '{{API_BASE_URL}}/accounts' \
--header 'x-giro-key: {{SECRET_KEY}}' \
--header 'Content-Type: application/json'
{
"meta": {
"statusCode": 200,
"success": true,
"pagination": {
"totalCount": 1,
"perPage": 10,
"current": 1
}
},
"data": [
{
"_id": "650078a7325376468ec517dd",
"publicId": "5b4ad876-fe77-48e2-bf01-6db8049b41a4",
"name": "Giro app",
"webhooks": ["https://dummy-webhook.example.com/hook/abcdefgh123456789"],
"isDefault": true,
"pubKey": {
"live": "live_pub_d66b499bad368792240fdc9c-7548-486e-802d-3db3cee22759",
"test": "test_pub_66fb675d0f3b3b496498f354-33e8-499e-9a68-9801944bc9a0"
},
"createdAt": "2023-09-12T14:41:43.008Z",
"updatedAt": "2023-09-12T14:41:55.056Z",
"__v": 1,
"business": "650078a741270245efa6781c",
"id": "650078a7325376468ec517dd"
}
]
}
GET {{baseurl}}/accounts
https://gw.stg.girostack.com/v1
https://gw.stg.girostack.com/v1
https://gw.prod.girostack.com/v1
Headers
Pass your account’s secret key as the value.
curl --location '{{API_BASE_URL}}/accounts' \
--header 'x-giro-key: {{SECRET_KEY}}' \
--header 'Content-Type: application/json'
{
"meta": {
"statusCode": 200,
"success": true,
"pagination": {
"totalCount": 1,
"perPage": 10,
"current": 1
}
},
"data": [
{
"_id": "650078a7325376468ec517dd",
"publicId": "5b4ad876-fe77-48e2-bf01-6db8049b41a4",
"name": "Giro app",
"webhooks": ["https://dummy-webhook.example.com/hook/abcdefgh123456789"],
"isDefault": true,
"pubKey": {
"live": "live_pub_d66b499bad368792240fdc9c-7548-486e-802d-3db3cee22759",
"test": "test_pub_66fb675d0f3b3b496498f354-33e8-499e-9a68-9801944bc9a0"
},
"createdAt": "2023-09-12T14:41:43.008Z",
"updatedAt": "2023-09-12T14:41:55.056Z",
"__v": 1,
"business": "650078a741270245efa6781c",
"id": "650078a7325376468ec517dd"
}
]
}
Was this page helpful?
curl --location '{{API_BASE_URL}}/accounts' \
--header 'x-giro-key: {{SECRET_KEY}}' \
--header 'Content-Type: application/json'
{
"meta": {
"statusCode": 200,
"success": true,
"pagination": {
"totalCount": 1,
"perPage": 10,
"current": 1
}
},
"data": [
{
"_id": "650078a7325376468ec517dd",
"publicId": "5b4ad876-fe77-48e2-bf01-6db8049b41a4",
"name": "Giro app",
"webhooks": ["https://dummy-webhook.example.com/hook/abcdefgh123456789"],
"isDefault": true,
"pubKey": {
"live": "live_pub_d66b499bad368792240fdc9c-7548-486e-802d-3db3cee22759",
"test": "test_pub_66fb675d0f3b3b496498f354-33e8-499e-9a68-9801944bc9a0"
},
"createdAt": "2023-09-12T14:41:43.008Z",
"updatedAt": "2023-09-12T14:41:55.056Z",
"__v": 1,
"business": "650078a741270245efa6781c",
"id": "650078a7325376468ec517dd"
}
]
}