Skip to main content

Create Vendor Credit From Return

POST 

/api/vendor-returns/:vendorReturn/create-credit

Create the financial vendor credit from a SHIPPED (or completed) vendor return - use this once the supplier's credit memo arrives. Returns the newly created draft vendor credit.

Required scope: accounting:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

The credit's lines link to the return's lines at the line level, so each return line tracks how much of it has been credited (credited_quantity). Crediting the un-invoiced portion settles the vendor-returns clearing account. Only the remaining un-credited quantity of each return line is included; lines already fully credited are skipped.

Authentication: Requires Bearer token.

Body fields (all optional):

  • vendor_credit_number (string, max 255, must be unique; auto-generated when omitted)
  • supplier_reference (string, max 255; defaults to the return's vendor RMA number)
  • credit_date (date, YYYY-MM-DD; defaults to today)

Fails with 422 when the return is not shipped/completed, or when it is already fully credited.

Request

Responses

OK

Response Headers
    Content-Type