Skip to main content
POST
Move a purchase order payment

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 the payment is currently on

paymentId
integer
required

ID of the payment to move

Body

application/json
target_purchase_order_id
integer
required

Purchase order to move the payment to. Must belong to the same vendor and use the same currency.

Required range: x >= 1
Example:

1045

amount
number<float> | null

Amount to move. Defaults to the whole payment. Cannot exceed the payment amount.

Required range: x >= 0.01
Example:

250

Response

Payment moved. Returns both purchase orders with recalculated totals.

source_purchase_order
object
target_purchase_order
object