Skip to main content

Get All Buyer Group

Deskripsi

Membuat API service bagi user open API untuk mengambil data alamat pembeli

MethodURL
GETapi/v1/bumn/buyer-group/{bumn_id}

Request

TypeParamsValuesDescription
QUERYbumn_id
  • string
  • mandatory

ID of BUMN

Response

Success

StatusPayload
200
{
"status": "success",
"data": {
"bumn_data": {
"bumn_id": "62a7079031bfe7a364644205",
"bumn_name": "Others",
"buyer_group_data": [
{
"id": "631e2b1cdf5e0b1702afe20d",
"name": "UT PaDi UMKM"
},
{
"id": "66c71d4b153d8b5b45fca0aa",
"name": "BG encryption cahyo testing"
}
]
}
},
"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.bumn_data
Data Type: OBJECT
Data transmitted by response.
data.bumn_id
Data Type: STRING
ID bumn.
data.bumn_name
Data Type: STRING
Name of BUMN.
data.bumn_group_data
Data Type: OBJECT
Data transmitted by response.
data.bumn_group_data.id
Data Type: STRING
ID of group bumn.
data.bumn_group_data.name
Data Type: STRING
Name of group bumn.
message
Data Type: STRING
Description and/or details message of the status.
Available Value:
“ok” or some error message by trapped condition

Error

StatusPayload
404
{
"status": "error",
"message": "bumn not found"
}
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