Skip to main content

Upload Sales Credit Document

POST 

/api/sales-credits/:salesCredit/attachments

Uploads a supporting document to the sales credit.

Required scope: orders:write

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

Authentication: Requires Bearer token.

Send the file as multipart/form-data under the file key. Accepted types: PDF, PNG, JPG, JPEG, WEBP. Maximum size: 20 MB. Empty files are rejected.

Returns 422 when the credit is archived — archived credits are read-only history.

Request

Responses

Created

Response Headers
    Content-Type