curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "allocation",
"id": "alc_4hn7vz2qe6wk3pma5rtd",
"account": "1000000001",
"amount_kobo": 5000000,
"state": "booked",
"reason": null,
"reject_reason": null,
"created_at": "2026-09-25T06:07:15Z",
"updated_at": "2026-09-25T06:07:15Z",
"client_reference": null
}Retrieve an allocation
Returns the allocation’s current state. Requires the read scope.
curl --request GET \
--url https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://gateway-sandbox.matambaintelligence.com/v1/allocations/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"object": "allocation",
"id": "alc_4hn7vz2qe6wk3pma5rtd",
"account": "1000000001",
"amount_kobo": 5000000,
"state": "booked",
"reason": null,
"reject_reason": null,
"created_at": "2026-09-25T06:07:15Z",
"updated_at": "2026-09-25T06:07:15Z",
"client_reference": null
}Authorizations
Response
An allocation.
Money from your wallet to one of your customers' accounts.
sending: reserved, and the send is in progress. If it still reads sending after its request has ended, its outcome was not recorded. Our operations team reconciles it with the broker as it does an uncertain one, and it becomes booked, or rejected with reject_reason not_booked and the amount returned to your wallet. Until then, another allocation to the same account for the same amount is refused with 409 similar_allocation_unresolved. booked: the broker booked it into the account's balance. uncertain: the broker did not confirm whether it booked it. The amount stays reserved, the gateway does not resubmit it, and our operations team reconciles it with the broker. Until it resolves, another allocation to the same account for the same amount is refused with 409 similar_allocation_unresolved. rejected: the broker rejected it, or our operations team confirmed it didn't book it (reject_reason says which), and the amount is returned to your wallet. refused: it never reached the broker, and the amount is returned to your wallet. New values can be added: handle an unrecognised value with a safe default.
sending, booked, uncertain, rejected, refused Why the allocation was rejected. Set only when state is rejected. New values can be added: handle an unrecognised value with a safe default.
invalid_amount, closed_financial_year, account_not_at_broker, rejected_by_broker, settlement_lockout, not_booked, null