curl --request POST \
--url
https://api.sandbox.getanchor.co/api/v1/statements \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-anchor-key:
' \
--data '
{
"data": {
"type": "DepositAccount",
"attributes": {
"productName": "CURRENT"
},
"relationships": {
"customer": {
"data": {
"id": "16976298908802-anc_bus_cst",
"type": "BusinessCustomer"
}
}
}
curl --request GET \
--url
https://api.sandbox.getanchor.co/api/v1/payments/169900905874731-anc_py\
--header 'accept: application/json' \
--header 'x-anchor-key: < API Key>'
curl --request POST \
--url
https://api.sandbox.getanchor.co/api/v1/virtual-nubans \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-anchor-key: < API Key>' \
--data '
{
"data": {
"type": "VirtualNuban",
"relationships": {
"settlementAccount": {
"data": {
"type": "DepositAccount"
"id": "16968487149490-anc_acc",
}
}
}
curl --request POST \
--url
https://api.sandbox.getanchor.co/api/v1/transfers \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-anchor-key:
' \
--data '
{
"data": {
"type": "BookTransfer",
"attributes": {
"currency": "NGN"
"amount": "500000"
"reason": "simple transfer"
"reference": "ref_achorr_12321"
},
"relationships": {
"destinationAccount": {
"data": {
"type": "SubAccount"
"id": "16932376220293-anc_subacc",
},
}
"account": {
"data": {
"type": "SubAccount"
"id": "16932386254124-anc_subacc",
}
}
}