This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
This document is generated by Apidog. Apidog: All-in-one workspace for API design, document, debug, test, mock
id: Supplier ID (required){
  "result": "success",
  "code": 200,
  "data": {
    "Supplier": {
      "id": 1,
      "supplier_number": "SUP001",
      "business_name": "Supply Co",
      "first_name": "Jane",
      "last_name": "Smith",
      "email": "jane.smith@example.com",
      "phone1": "555-9876",
      "phone2": "555-5432",
      "address1": "456 Market St",
      "address2": "Suite 200",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94103",
      "country_code": "US",
      "website": "https://supplyco.example.com",
      "tax_registration": "87-6543210",
      "created": "2023-01-10 09:15:22",
      "modified": "2023-03-05 14:20:30",
      "balance": 750.00,
      "active": 1,
      "notes": "Primary office supplies vendor",
      // Additional supplier fields...
      "custom_fields": {
        "payment_terms": "Net 30",
        "discount_rate": "2%"
      }
    },
    "PurchaseOrders": [
      {
        "id": 567,
        "number": "PO-2023-001",
        "date": "2023-03-20",
        "total": 500.00,
        "status": 1
        // Additional purchase order summary fields...
      }
      // Other recent purchase orders...
    ]
  }
}curl --location -g --request GET '{{subdomain}}/api2/api2/suppliers/{{id}}.json'{
  "result": "success",
  "code": 200,
  "data": {
    "Supplier": {
      "id": 1,
      "supplier_number": "SUP001",
      "business_name": "Supply Co",
      "first_name": "Jane",
      "last_name": "Smith",
      "email": "jane.smith@example.com",
      "phone1": "555-9876",
      "phone2": "555-5432",
      "address1": "456 Market St",
      "address2": "Suite 200",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94103",
      "country_code": "US",
      "website": "https://supplyco.example.com",
      "tax_registration": "87-6543210",
      "created": "2023-01-10 09:15:22",
      "modified": "2023-03-05 14:20:30",
      "balance": 750.00,
      "active": 1,
      "notes": "Primary office supplies vendor",
      "custom_fields": {
        "payment_terms": "Net 30",
        "discount_rate": "2%"
      }
    },
    "PurchaseOrders": [
      {
        "id": 567,
        "number": "PO-2023-001",
        "date": "2023-03-20",
        "total": 500.00,
        "status": 1
      },
      {
        "id": 560,
        "number": "PO-2023-0095",
        "date": "2023-02-25",
        "total": 750.00,
        "status": 2
      }
    ]
  }
}