Create an account
curl --request POST \
--url https://api.panoqore.example/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"code": "LIA:WAL:NGN:0001",
"name": "First wallet",
"currency": "NGN"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({code: 'LIA:WAL:NGN:0001', name: 'First wallet', currency: 'NGN'})
};
fetch('https://api.panoqore.example/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.panoqore.example/v1/accounts"
payload = {
"code": "LIA:WAL:NGN:0001",
"name": "First wallet",
"currency": "NGN"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.panoqore.example/v1/accounts"
payload := strings.NewReader("{\n \"code\": \"LIA:WAL:NGN:0001\",\n \"name\": \"First wallet\",\n \"currency\": \"NGN\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"code": "<string>",
"name": "<string>",
"type": "ASSET",
"normalSide": "DEBIT",
"currency": "<string>",
"ownerRef": "<string>",
"status": "ACTIVE",
"category": "WALLET",
"balance": {
"currency": "<string>",
"posted": "<string>",
"pending": "<string>",
"available": "<string>",
"version": "<string>",
"asOf": "2023-11-07T05:31:56Z"
},
"overdraftLimit": "<string>",
"pendingApprovalId": "<string>",
"namedAccounts": [
{
"id": "<string>",
"accountId": "<string>",
"accountLabel": "<string>",
"partner": "<string>",
"partnerName": "<string>",
"accountNumber": "<string>",
"bankCode": "<string>",
"accountName": "<string>",
"currency": "<string>",
"status": "PENDING",
"mandateRef": "<string>",
"partnerRef": "<string>",
"failureReason": "<string>",
"pendingApprovalId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}Accounts
Create an account
The type, normal side and category follow from the code. A customer wallet’s code has the group WAL.
Scope: entries:write.
POST
/
v1
/
accounts
Create an account
curl --request POST \
--url https://api.panoqore.example/v1/accounts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"code": "LIA:WAL:NGN:0001",
"name": "First wallet",
"currency": "NGN"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({code: 'LIA:WAL:NGN:0001', name: 'First wallet', currency: 'NGN'})
};
fetch('https://api.panoqore.example/v1/accounts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.panoqore.example/v1/accounts"
payload = {
"code": "LIA:WAL:NGN:0001",
"name": "First wallet",
"currency": "NGN"
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.panoqore.example/v1/accounts"
payload := strings.NewReader("{\n \"code\": \"LIA:WAL:NGN:0001\",\n \"name\": \"First wallet\",\n \"currency\": \"NGN\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Idempotency-Key", "<idempotency-key>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "<string>",
"code": "<string>",
"name": "<string>",
"type": "ASSET",
"normalSide": "DEBIT",
"currency": "<string>",
"ownerRef": "<string>",
"status": "ACTIVE",
"category": "WALLET",
"balance": {
"currency": "<string>",
"posted": "<string>",
"pending": "<string>",
"available": "<string>",
"version": "<string>",
"asOf": "2023-11-07T05:31:56Z"
},
"overdraftLimit": "<string>",
"pendingApprovalId": "<string>",
"namedAccounts": [
{
"id": "<string>",
"accountId": "<string>",
"accountLabel": "<string>",
"partner": "<string>",
"partnerName": "<string>",
"accountNumber": "<string>",
"bankCode": "<string>",
"accountName": "<string>",
"currency": "<string>",
"status": "PENDING",
"mandateRef": "<string>",
"partnerRef": "<string>",
"failureReason": "<string>",
"pendingApprovalId": "<string>",
"issuedAt": "2023-11-07T05:31:56Z",
"closedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}{
"error": {
"code": "INSUFFICIENT_FUNDS",
"message": "<string>",
"details": {},
"request_id": "<string>"
}
}Authorizations
An API key, pk_live_… or pk_test_….
Headers
Your unique key for this write, at most 255 characters. A retry with the same key and body gets the first answer back.
Maximum string length:
255Body
application/json
Response
OK
acc_…
TYPE:GROUP:CCY[:PARTY|SEQ], for example LIA:WAL:NGN:0193
Available options:
ASSET, LIABILITY, EQUITY, INCOME, EXPENSE Available options:
DEBIT, CREDIT opaque product-side id; never PII
Available options:
ACTIVE, FROZEN, CLOSED What the console groups by. Derived from the code's group segment.
WALLET: customer money
SETTLEMENT: mirror of a partner omnibus
INTERNAL: suspense, clearing, fees, FX position, equity
Available options:
WALLET, SETTLEMENT, INTERNAL Show child attributes
Show child attributes
Minor units, as a string.
Set while a freeze or unfreeze approval is waiting.
Show child attributes
Show child attributes