Skip to main content
POST
cURL
Records a purchase payment, wrapped in purchase_payment. payment_method_applications says how it is paid, purchase_invoice_applications which invoices it pays, and credit_note_applications which purchase credit notes it spends. Paying more than the invoices take raises a purchase credit note.
The SDK samples get their client from credentials your app registers once when it starts, as shown in Authentication. To try the call here, click Try it, set host to your Exsited API host name and paste an access token from Get an access token. To send a raw JSON body instead of filling in fields, copy the cURL sample and edit its -d payload.

Authorizations

Authorization
string
header
required

An access token from POST /api/v4/oauth2/token. The SDKs get and renew it for you.

Body

application/json
purchase_payment
object
required

Response

201 - application/json

The new purchase payment, under purchase_payment.

purchase_payment
object