JSR Tax Advisors logoAPI
Developer APIsReference documentation

Create a sales credit note


Creates a sales credit note conforming to UBL 2.1 specification. See the right panel for request samples and response JSON.

Path parameters

ParameterTypeRequiredDescription
supplier_profile_idstring
Required
The business profile ID of the supplier issuing the credit note.
Required data

  • Original sales invoice reference — Include the original invoice in billing_reference

  • Supplier profile identifier — Business profile ID of the supplier (in path)

  • Buyer party details — Customer party fields (name, address, tax scheme)

  • Line items being credited — At least one document line

  • Discrepancy reasondiscrepancy_response

  • VAT information — Tax category and scheme per line and for charges/allowances as applicable

System behavior

  • VAT is recalculated according to OMN VAT law

  • Credit note status and transmission events are tracked

Response

Status code: 201 Created

Returns the created credit note object with all calculated fields populated.

Each line includes calculated fields: base_amount, net_amount, total_amount, tax_amount. The price object in the response contains price_amount (instead of base_amount in the request).

System-generated fields
FieldDescription
seller_uuidSeller identity UUID (BTOM-004). Auto-generated if omitted. See Invoice QR Code and Seller UUID.
qr_code_base64Base64-encoded PNG QR code per Oman SRA v1.0.2. See Invoice QR Code and Seller UUID.
Error responses

StatusDescription
400 Bad RequestInvalid request parameters or validation failed. For validation errors, the response includes field-specific errors.
401 UnauthorizedAuthentication required or invalid token.
500 Internal Server ErrorAn error occurred while processing the request.