{
  "opencollection": "1.0.0",
  "info": {
    "name": "Coupa Core Invoices Requisitions 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": "Requisitions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Coupa List requisitions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.coupahost.com/api/requisitions",
            "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": "status",
                "value": "",
                "type": "query",
                "description": "Filter by requisition status (draft, cart, pending_buyer_action, pending_approval, approved, ordered, partially_received, received, abandoned, withdrawn)"
              },
              {
                "name": "requester[login]",
                "value": "",
                "type": "query",
                "description": "Filter by requester login"
              },
              {
                "name": "updated-at[gt]",
                "value": "",
                "type": "query",
                "description": "Filter for records updated after this datetime"
              },
              {
                "name": "exported",
                "value": "",
                "type": "query",
                "description": "Filter by export status"
              }
            ]
          },
          "docs": "Retrieve a list of requisitions. Use query parameters to filter results. Supports filtering by status, requester, date ranges, and export status."
        },
        {
          "info": {
            "name": "Coupa Create a requisition",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.coupahost.com/api/requisitions",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new requisition. Requires at least one requisition line. Line numbers must increment by one; duplicate line numbers are ignored. Currencies and users must have active status."
        },
        {
          "info": {
            "name": "Coupa Get a requisition",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{instance}.coupahost.com/api/requisitions/: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 requisition by its Coupa internal ID."
        },
        {
          "info": {
            "name": "Coupa Update a requisition",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{instance}.coupahost.com/api/requisitions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Coupa internal unique identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update an existing requisition by its Coupa internal ID."
        },
        {
          "info": {
            "name": "Coupa Delete a requisition",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{instance}.coupahost.com/api/requisitions/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Coupa internal unique identifier"
              }
            ]
          },
          "docs": "Delete an existing requisition by its Coupa internal ID. Only requisitions in draft status can be deleted."
        },
        {
          "info": {
            "name": "Coupa Submit a requisition for approval",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{instance}.coupahost.com/api/requisitions/submit_for_approval",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Submit a requisition for approval. The requisition must have at least one line item and valid accounting allocations."
        },
        {
          "info": {
            "name": "Coupa Update and submit a requisition for approval",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{instance}.coupahost.com/api/requisitions/:id/update_and_submit_for_approval",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Coupa internal unique identifier"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a requisition and submit it for approval in a single operation."
        }
      ]
    }
  ],
  "bundled": true
}