Skip to main content
POST
cURL
Applies the credit to purchase invoices, listed under purchase_credit_note.purchase_invoices. Each entry takes purchase_invoice_id and amount and nothing else. Applying the credit records a purchase payment. Address the credit note by its pcn_ id.
Applying the credit records a purchase payment.
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.

Path Parameters

purchase_credit_note_id
string
required

The purchase credit note's pcn_ id. A code returns 400.

Body

application/json
purchase_credit_note
object
required

Response

The purchase credit note, under purchase_credit_note.

purchase_credit_note
object