Create Buyer
Create a buyer record with company and contact information
Body·
required
application/json
V1 create buyer request.
V1 sends { buyers: [{ buyer objects }] }. The proxy transforms address fields and forwards to V2.
- Properties: 16Type: array of V1BuyerItembuyersrequired
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/api/buyer
curl /api/buyer \
--request POST \
--header 'Content-Type: application/json' \
--data '{
"buyers": [
{
"address_city": "",
"address_country": "",
"address_line0": "",
"address_line1": "",
"address_line2": "",
"address_postal_code": "",
"address_state": "",
"cif_number": "",
"contact_number": "",
"email": "",
"name": "",
"office_contact": "",
"registration_document_type": "",
"registration_number": "",
"sst": "",
"tin": ""
}
]
}'
{
"data": {
"accepted_buyers": [
{
"buyer_uuid": "123e4567-e89b-12d3-a456-426614174000",
"message": "Buyer created or updated successfully."
}
],
"rejected_buyers": [
{
"email": "invalid@example.com",
"message": "Validation failed: Buyer TIN is not verified according to LHDN"
}
],
"status": "success"
},
"message": "Buyer Request Submitted.",
"requestId": "123e4567-e89b-12d3-a456-426614174000",
"status": "success"
}