Skip to main content
POST
/
accountgl
curl --request POST \
  --url https://spark.test.woodcore.co/api/v2/accountgl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comments": "Transfer from GL to Account",
  "credits": [
    {
      "amount": "30000",
      "glAccountId": "30"
    }
  ],
  "currencyCode": "NGN",
  "customerAccounts": [
    {
      "amount": "30000",
      "customerAccountId": "000000458"
    }
  ],
  "debits": [],
  "officeId": "1",
  "operationType": "Debit",
  "referenceNumber": "dsfvghtrhrg132evsbwd",
  "uniqueReferenceKey": "dsfvghtrhrg132evsbwd-unq",
  "transactionDate": "17 March 2022"
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

comments
string
Example:

"Transfer from GL to Account"

credits
any[]
Example:
[]
currencyCode
string
Example:

"NGN"

customerAccounts
object[]
Example:
[
{
"amount": "30000",
"customerAccountId": "000000458"
}
]
debits
object[]
Example:
[{ "amount": "30000", "glAccountId": "30" }]
officeId
string
Example:

"1"

operationType
string
Example:

"Credit"

referenceNumber
string
Example:

"dsfvghtrhrg132evsbwd"

uniqueReferenceKey
string
Example:

"dsfvghtrhrg132evsbwd-unq"

transactionDate
string
Example:

"17 March 2022"

Response

200 - application/json

{}

The response is of type object.