Log In

Create a Payment Allocation for an Invoice

post/public/v1/invoices/{invoice}/payment-allocations

payment_date takes either a calendar date as YYYY-MM-DD, which means that day where the provider is, or a full instant carrying a timezone. Send the calendar date. It says what you mean whatever offset you are on. An instant is converted to the provider's timezone and the payment is recorded against the day it lands on there, so an offset ahead of the provider's puts a midnight instant on the previous day: 2026-07-01T00:00:00+11:00 records the payment on 30 June for a provider on AEST. The payment date may not be in the future, so the latest calendar date you can send is today where the provider is.

  • Authorizationstringrequired

    Bearer authentication header of the form Bearer <token>, where <token> is your API key. See How to set up an API key.

  • invoicestringrequired

    The invoice UUID

Body

application/json
  • amountintegerrequired≥ 0≤ 9223372036854776000
  • payment_datestringrequired

Response

201application/json
  • 401Unauthenticated
  • 403Authorization error
  • 404Not found
  • 422Validation error