Skip to main content

Get Transaction Document

MethodURL
GETapi/v1/bumn/transactions/document

Request

TypeParamsValuesDescription
QUERYtypestring mandatory

Type of document required:

  • faktur
  • bast
  • invoice
  • purchase_order
  • payment_instruction
QUERYinvoice_numberstring mandatoryCan be copied from general.invoice_number field

Response

Success

StatusPayload
200
  {
"status": "success",
"data": {
"order": "https://smb-padiumkm-images-private-stage.oss-ap-southeast-5.aliyuncs.com/transaction%2Forder%2Fbast%2FINV-2024-06-20-176126886%2FBAST_0.pdf?Expires=1720197814&OSSAccessKeyId=******&Signature=******"
},
"message": "ok"
}
ParamsDescription
status
Data Type: STRING
Status of the request delivered to server.
Available value:
* “success”
* “error”
data
Data Type: OBJECT
Data transmitted by response.
data.order
Data Type: STRING
Contains URL of the document file.
message
Data Type: STRING
Description and/or details message of the status.
Available Value:
“ok” or some error message by trapped condition

Error

StatusPayload
400
{
"status": "error",
"message": "Validation error in your request",
"errors": {
"invoiceNumber": [
{
"message": "The invoiceNumber is invalid"
}
],
"type": [
{
"message": "The type is invalid"
}
]
}
}
ParamsDescription
status
Data Type: STRING
Status of the request delivered to server.
Available value:
* “success”
* “error”
message
Data Type: STRING
Description message for the occurring error
errors
Data Type: OBJECT
Detail of the occurring error