{
  "opencollection": "1.0.0",
  "info": {
    "name": "Coupa Core Invoices Suppliers API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://{instance}.coupahost.com/oauth2/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Suppliers",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Coupa List suppliers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.coupahost.com/api/suppliers",
            "params": [
              {
                "name": "offset",
                "value": "",
                "type": "query",
                "description": "Number of records to skip for pagination"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of records to return (max 50)"
              },
              {
                "name": "return_object",
                "value": "",
                "type": "query",
                "description": "Set to limited to return only key fields, or shallow to exclude nested objects"
              },
              {
                "name": "dir",
                "value": "",
                "type": "query",
                "description": "Sort direction (asc or desc)"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Filter by supplier name"
              },
              {
                "name": "number",
                "value": "",
                "type": "query",
                "description": "Filter by supplier number"
              },
              {
                "name": "status",
                "value": "",
                "type": "query",
                "description": "Filter by supplier status (active, inactive, draft)"
              },
              {
                "name": "updated-at[gt]",
                "value": "",
                "type": "query",
                "description": "Filter for records updated after this datetime"
              }
            ]
          },
          "docs": "Retrieve a list of suppliers. Use query parameters to filter results. Supports filtering by name, number, status, and date ranges."
        },
        {
          "info": {
            "name": "Coupa Create a supplier",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.coupahost.com/api/suppliers",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new supplier record. The supplier name is required. Default status is draft if not specified. Default payment method is invoice."
        },
        {
          "info": {
            "name": "Coupa Get a supplier",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.coupahost.com/api/suppliers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Coupa internal unique identifier"
              },
              {
                "name": "return_object",
                "value": "",
                "type": "query",
                "description": "Set to limited to return only key fields, or shallow to exclude nested objects"
              }
            ]
          },
          "docs": "Retrieve a single supplier by its Coupa internal ID."
        },
        {
          "info": {
            "name": "Coupa Update a supplier",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{instance}.coupahost.com/api/suppliers/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Coupa internal unique identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing supplier by its Coupa internal ID. Cannot reassign address or contact IDs when updating primary address or contact."
        }
      ]
    }
  ],
  "bundled": true
}