Skip to main content
POST
Create Sales Invoice
Plain Signature

Authorizations

Authorization
string
header
required

Generate a JWT signed with the client_secret and include the client_id as a claim in its payload.

A-Signature
string
header
required

Generate the signature by creating an SHA256-HMAC hash from the plain signature above, using the signature_secret as the key. Then, Base64-encode the resulting hash and place the final value in the A-Signature header.

A-Data
string
header
required

Include the email and tenant_id in the payload as Base64 encoded.

Body

application/json

Sales invoice details

customer_name
string
required
Example:

"Mira Ramadhani"

document_date
string<date-time>
required
Example:

"20/08/2025"

items
object[]
required
Example:
auto_create_payment
boolean
Example:

true

other_amount
number
Example:

0

Response

Sales invoice created successfully

status
string
Example:

"00"

message
string
Example:

"success"

data
object