PUT /purchase-invoice-payments/{id}.json

PUT /purchase-invoice-payments/{id}.json

Path parameters

  • id integer(int64) Required

    Numeric ID of the instance

    Minimum value is 1.

application/json

Body Required

  • amount number Required

    Amount

    Default value is 0.

  • createdAt string(date-time) | null

    Created at

  • exchangeRate number(float) Required

    Exchange rate

    Default value is 1.

  • externalId string | null

    External

  • id integer(int32)

    Id

  • paidAt string(date-time) Required

    Paid at

    Default value is {} (empty).

  • paymentMethodId integer(int32) | null

    Payment method

  • purchaseInvoiceId integer(int32) Required

    Purchase invoice

  • purchaseItemId integer(int32) | null

    Purchase item

  • reference string | null

    Reference

  • status string | null Required

    Status

    Values are active or cancelled. Default value is active.

  • transferId string | null

    Transfer

  • type string | null Required

    Type

    Values are payment, overpayment, correction, refund, or refundCommission. Default value is payment.

  • updatedAt string(date-time) | null

    Updated at

  • xeroId string | null

    Xero

PUT /purchase-invoice-payments/{id}.json
curl \
 --request PUT 'http://api.example.com/v1/purchase-invoice-payments/{id}.json' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"amount":0,"createdAt":"2025-05-04T09:42:00Z","exchangeRate":1,"externalId":"string","id":42,"paidAt":{},"paymentMethodId":42,"purchaseInvoiceId":42,"purchaseItemId":42,"reference":"string","status":"active","totals":{},"transferId":"string","type":"payment","updatedAt":"2025-05-04T09:42:00Z","xeroId":"string"}'
Request examples
{
  "amount": 0,
  "createdAt": "2025-05-04T09:42:00Z",
  "exchangeRate": 1,
  "externalId": "string",
  "id": 42,
  "paidAt": {},
  "paymentMethodId": 42,
  "purchaseInvoiceId": 42,
  "purchaseItemId": 42,
  "reference": "string",
  "status": "active",
  "totals": {},
  "transferId": "string",
  "type": "payment",
  "updatedAt": "2025-05-04T09:42:00Z",
  "xeroId": "string"
}