charges
POST /v1/charges
Request
- Base URLhttps://apibusiness-staging-civ.djamo.io
- Auth
- HTTP bearer
- or API key in header X-Company-Id
Request body
Example request
{
"amount": 500,
"externalId": "17f9956f-0965-4964-b2c1-40b4fef141a7",
"description": "Charge for July's salary",
"onCanceledRedirectionUrl": "https://merchant.com/djamo-success/1744728413766",
"onCompletedRedirectionUrl": "https://merchant.com/djamo-success/1744728413766"
}Response
Example response
{
"id": "2cc3fe81-e007-46be-a97c-ae888a35ea46",
"createdAt": "2020-11-24T17:43:15.970Z",
"externalId": "17f9956f-0965-4964-b2c1-40b4fef141a7",
"description": "July's salary",
"currency": "XOF",
"amount": 500,
"due": 500,
"fees": {
"amount": 50,
"currency": "XOF",
"rate": 50,
"value": 50
},
"status": "due",
"paid": 1,
"refunded": 1,
"attempts": 1,
"metadata": {},
"transactions": []
}Changes
No recorded changes to this operation across all 2 revisions of this API.