Skip to main content
POST
Create Purchase 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

Purchase invoice details

vendor_name
string
required
Example:

"CV Agus System"

document_date
string<date-time>
required
Example:

"30/07/2029"

items
object[]
required
Example:
auto_create_payment
boolean

Set to true if you want to create payment automatically

Example:

true

other_amount
number
Example:

0

Response

Purchase invoice created successfully

status
string
Example:

"00"

message
string
Example:

"success"

data
object