Skip to main content
PUT

Authorizations

Authorization
string
header
required

Authenticate using a bearer token. To create a token, navigate to /settings/api-tokens and click Create API Token.

Path Parameters

purchaseOrderId
integer
required

ID of the purchase order

paymentId
integer
required

ID of the payment to update

Body

application/json
payment_date
string<date>

Date of the payment (YYYY-MM-DD)

Example:

"2024-01-16"

payment_type
enum<string>

Type of payment

Available options:
cash,
credit_card,
debit_card,
check,
bank_transfer
Example:

"check"

paid_amount
number<float>

Amount paid

Required range: x >= 0.01
Example:

600

remarks
string | null

Payment remarks or notes

Maximum string length: 1000
Example:

"Updated check #1234"

external_id
string | null

External payment reference ID

Maximum string length: 255
Example:

"PAY-EXT-12345"

Response

Payment updated successfully

data
object