Plain Signature
Authorizations
Generate a JWT signed with the client_secret and include the client_id as a claim in its payload.
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.
Include the email and tenant_id in the payload as Base64 encoded.
Body
application/json
Purchase invoice details
Example:
"CV Agus System"
Example:
"30/07/2029"
Example:
[
{
"item_code": "0745114900005",
"item_name": "Product A",
"quantity": 2,
"unit_of_measurement": "pcs",
"unit_price": 2000,
"discount_amount": 0,
"tax_code": ""
},
{
"item_code": "0745114900006",
"item_name": "Product B",
"quantity": 5,
"unit_of_measurement": "pcs",
"unit_price": 1000,
"discount_amount": 0,
"tax_code": ""
}
]Set to true if you want to create payment automatically
Example:
true
Example:
0