Fetch a list of invoices

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Issue Delivery

Creates and issues a delivery document in the investglass system.

Endpoint

POST /2.0/delivery/issue

Authentication

This endpoint requires OAuth 2.0 authentication. Include your access token in the Authorization header:

Authorization: Bearer YOUR_ACCESS_TOKEN

Request Headers

HeaderValue
Content-Typeapplication/json
Acceptapplication/json
AuthorizationBearer YOUR_ACCESS_TOKEN

Request Body

The request body should contain the delivery information:

{
  "delivery_id": "integer",
  "contact_id": "integer", 
  "delivery_date": "string (date)",
  "items": [
    {
      "item_id": "integer",
      "quantity": "number",
      "unit_price": "number"
    }
  ]
}

Parameters

ParameterTypeRequiredDescription
delivery_idintegerYesThe ID of the delivery to issue
contact_idintegerYesThe contact/customer ID
delivery_datestringNoDate of delivery (ISO 8601 format)
itemsarrayYesArray of delivery items

Response

Success Response (200 OK)

{
  "id": 123,
  "delivery_nr": "DEL-2024-001",
  "contact_id": 456,
  "delivery_date": "2024-01-15",
  "status": "issued",
  "total_amount": 1500.00,
  "items": [
    {
      "id": 789,
      "item_id": 101,
      "quantity": 2,
      "unit_price": 750.00,
      "total": 1500.00
    }
  ],
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:30:00Z"
}

Error Responses

400 Bad Request

{
  "error": "invalid_request",
  "message": "Missing required parameter: contact_id"
}

401 Unauthorized

{
  "error": "unauthorized",
  "message": "Invalid or expired access token"
}

404 Not Found

{
  "error": "not_found", 
  "message": "Delivery with ID 123 not found"
}

Example Usage

cURL

curl -X POST "https://api.investglass.com/2.0/delivery/issue" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "delivery_id": 123,
    "contact_id": 456,
    "delivery_date": "2024-01-15",
    "items": [
      {
        "item_id": 101,
        "quantity": 2,
        "unit_price": 750.00
      }
    ]
  }'

JavaScript

const response = await fetch('https://api.investglass.com/2.0/delivery/issue', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    delivery_id: 123,
    contact_id: 456,
    delivery_date: '2024-01-15',
    items: [
      {
        item_id: 101,
        quantity: 2,
        unit_price: 750.00
      }
    ]
  })
});

const delivery = await response.json();

Notes

  • Delivery documents must be created before they can be issued
  • Once issued, the delivery status changes and becomes immutable
  • The API uses OAuth 2.0 for authentication - see the Authentication Guide for setup instructions
  • Base URL: `https://api.investglass.com/
  • All dates should be in ISO 8601 format (YYYY-MM-DD)
  • Amounts are in the account's default currency

Related Endpoints

Response
200
Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!