Skip to main content
POST
/
api
/
credit-notes
/
{creditNoteId}
/
refunds
Create a refund for the given credit note.
curl --request POST \
  --url https://api.example.com/api/credit-notes/{creditNoteId}/refunds \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'organization-id: <organization-id>' \
  --data '
{
  "fromAccountId": 1,
  "amount": 100,
  "exchangeRate": 1,
  "referenceNo": "123456",
  "description": "Credit note refund",
  "date": "2021-01-01",
  "branchId": 1
}
'

Headers

Authorization
string
required

Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Path Parameters

creditNoteId
number
required

Body

application/json
fromAccountId
number
required

The id of the from account

Example:

1

amount
number
required

The amount of the credit note refund

Example:

100

exchangeRate
number
required

The exchange rate of the credit note refund

Example:

1

referenceNo
string
required

The reference number of the credit note refund

Example:

"123456"

description
string
required

The description of the credit note refund

Example:

"Credit note refund"

date
string<date-time>
required

The date of the credit note refund

Example:

"2021-01-01"

branchId
number
required

The id of the branch

Example:

1

Response

201 - undefined