Create Supplier

​

Create a supplier record with company and contact information

Body·

required
application/json

V1 create supplier request.

V1 sends { suppliers: [{ supplier objects }] }. The proxy transforms address fields and forwards to V2.

  • Properties: 16

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for post/api/supplier
curl /api/supplier \
  --request POST \
  --header 'Content-Type: application/json' \
  --data '{
  "suppliers": [
    {
      "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_suppliers": [
      {
        "message": "Supplier created or updated successfully.",
        "supplier_uuid": "123e4567-e89b-12d3-a456-426614174000"
      }
    ],
    "rejected_suppliers": [
      {
        "email": "invalid@example.com",
        "message": "Validation failed: Supplier TIN is not verified according to LHDN"
      }
    ],
    "status": "success"
  },
  "message": "Supplier Request Submitted.",
  "requestId": "123e4567-e89b-12d3-a456-426614174000",
  "status": "success"
}