Expenses

Pay an approved expense

Pays the expense recipient from a wallet, with the same rules as the dashboard. A second call returns 409 "Payout already initiated". While automatic payments is paying or retrying the expense, the call returns 409 "Automatic payment in progress"; try again later. Get the source wallet from the Business doc (accounts). With witholdTax: true, tax is withheld using each line item's own tax; taxId is only recorded on the expense. If your business turned on signed requests, sign this call.

POST
/api/v1/expenses/{id}/pay
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/api/v1/expenses/string/pay" \  -H "Content-Type: application/json" \  -d '{    "walletId": "123e4567-e89b-12d3-a456-426614174000"  }'
{
  "id": "string",
  "expenseId": "string",
  "businessId": "string",
  "amount": 0,
  "currency": "string",
  "description": "string",
  "type": "SCHEDULED",
  "payoutCategory": "wallet",
  "isPayoutInitiated": true,
  "isProcessable": true,
  "recipient": {
    "accountName": "string",
    "accountNumber": "string",
    "bankName": "string",
    "bankCode": "string"
  },
  "createdAt": "2019-08-24T14:15:22Z"
}
Empty
Empty
Empty
Empty
Empty

How is this guide?

Last updated on