SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Expenses

Confirm approval

POST/api/v1/expenses/:id/approve/confirm

Submits the code and sends the expense payout via PawaPay. Admin-only.

Requires Authorization
ADMIN only
Payout confirm

Path parameters

idstringrequired
Expense ID.

Body parameters

codestringrequired
The verification code from the email.
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/expenses/:id/approve/confirm \
  --header 'Authorization: Bearer <access_token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "code": "482913"
}'
200Example response
{
  "success": true,
  "data": {
    "id": "exp_1a2b3c",
    "reference": "SWG-EXP-2026-0014",
    "title": "Renouvellement hébergement serveur",
    "description": "Facture mensuelle du fournisseur d'hébergement.",
    "category": "UTILITIES",
    "amount": "150.00",
    "currency": "USD",
    "status": "PROCESSING",
    "incurredAt": "2026-02-10T00:00:00.000Z",
    "vendorName": "CloudHost SARL",
    "vendorPhone": "243812345678",
    "countryCode": "CD",
    "providerName": "MTN_MOMO_COD",
    "createdBy": {
      "id": "9f8e7d6c",
      "name": "Marie Kanku"
    },
    "approvedBy": null,
    "createdAt": "2026-02-10T08:00:00.000Z"
  }
}