Skip to main content

Effective 10 September 2024, API Documentation can be found on our Equinix Product Documentation site.
The content on this page will not be updated after 1 Oct 2024 and will be inaccessible after 31st Dec 2024.


purchaseorders


title: PurchaseOrders (V2 Beta)

PurchaseOrders (V2 Beta) API allows you to retrieve blanket purchase orders associated with your account.

GET PurchaseOrders

 GET /purchaseOrders
MethodGET
URL or End Point/colocations/v2/purchaseOrders
HeadersAuthorization, Content-Type
Query ParametersaccountNumbers, productTypes, ibxs, offset, limit, sorts
BodyNot applicable

This method retrieves existing blanket purchase orders in your organization based on their applicable accounts, product types, and IBXs. Only users from your organization with portal permissions may retrieve this information. The authorization token and content-type are the only headers that are passed to this API and a response is received based on the values passed.

 

If you are unaware of how to obtain an authorization token, refer to Requesting Access and Refresh tokens under the Getting Access Token section.

The following screenshots show a sample curl request and a successful JSON response.

curl -X
GET "https://api.equinix.com/colocations/v2/purchaseOrders?accountNumber=111111&productType=NETWORK&ibxs=AM1&offset=0&limit=1"
-H "content-type: application/json"
-H "authorization: Bearer qwErtY8zyW1abcdefGHI"

The description of the query parameters is as follows:

Query Parameter nameMandatoryTypeExampleApplicable ValuesDescription
accountNumbersYesarray [strings]111111

Account number.

 

Only one value is currently supported for this parameter.

productTypesYesarray [strings]NETWORKCROSS_CONNECT,
SMART_HANDS,
POWER,
NETWORK,
SMVSENSOR,
SMARTVIEW,
SERVICES

Product type that is applicable.

 

Only one value is currently supported for this parameter.

ibxsYesarray [strings]AM1

IBX location code of the associated IBX data center.

 

Only one value is currently supported for this parameter.

offsetNointeger0

Defines the index of the first item returned in the response. By specifying the offset, the response returns a subset of records starting with the offset value.

For example, if the offset is 10, the starting item returned in the response would be the 11th item.

Default value: 0
limitNointeger1

Defines the maximum number of records returned per page.

Default value: 10

Limit: 1 to 200
{
"data": [
{
"number": "PO123456",
"amount": 600000,
"remainingAmount": 1000,
"startDate": "2021-01-01",
"endDate": "2021-12-30",
"productTypes": [
"CROSS_CONNECT",
"NETWORK"
],
"productCategories": [
"INTERCONNECTION"
],
"ibxs": [
"AM1",
"AM2",

"AM3"
],
"description": "Blanket Interconnection PO"
}
],
"pagination": {
"offset": 0,
"limit": 1,
"total": 1,
"next": "/purchaseOrders?accountNumber=111111&productType=NETWORK&ibxs=ALL&offset=0&limit=1",
"previous": "/purchaseOrders?accountNumber=111111&productType=NETWORK&ibxs=ALL&offset=0&limit=1"
}
}

The description of the response payload is as follows:

Field nameTypeExampleDescription
dataarray [objects]Data returned from your query. Each purchase order object comprises the following fields where applicable: number, amount, remainingAmount, startDate, endDate, productTypes, productCategories, ibxs, description.
numberstringPO123456Purchase order number.
amountnumber600000Original value amount of this purchase order in USD.
remainingAmountnumber0Remaining value amount in purchase order in USD.
startDatestring2021-01-01

Purchase order start date.

Format: YYYY-MM-DD
endDatestring2021-12-30

Purchase order end date.

Format: YYYY-MM-DD
productTypesarray [strings]CROSS_CONNECT,
NETWORK

Product types applicable to this purchase order. This is a subset of productCategories.

See the following list for a description of the productTypes ENUM values.

Product types - Description
CROSS_CONNECT - Cross connect
NETWORK - Network ports such as Equinix Connect, Metro Connect, Internet Exchange, or Equinix Fabric ports
POWER - Power circuits such as AC or DC circuits
SERVICES - Professional services
SMART_HANDS - Smart Hands services
SMARTVIEW - IBX SmartView
SMVSENSOR - IBX SmartView environmental sensor
SPACE - Space
productCategoriesarray [strings]INTERCONNECTION

Product category applicable to this purchase order.

See the following list for a mapping of the productCategories ENUM values with related productTypes.

Product Categories - Product Types
SMART_HANDS - SMART_HANDS
INTERCONNECTION - CROSS_CONNECT, NETWORK
POWER - POWER
SPACE  - SPACE
SERVICES - SMVSENSOR, SMARTVIEW, SERVICES
ibxsarray [strings]AM1,
AM2,
AM3

IBX location codes applicable to this purchase order.

When an empty array is returned, the purchase order is applicable to all Equinix IBXs.
descriptionstringBlanket Interconnection POAdditional description of the purchase order.
paginationobjectPage information. This object comprises the following fields: offset, limit, total, next, previous.
offsetinteger0Offset of the first item in the response.
limitinteger1Maximum number of items in the response.
totalinteger1Total number of available items in the record.
nextstring/purchaseOrders?accountNumber=111111 &productType=NETWORK&ibxs=ALL&offset=0 &limit=1URL for the next page of results.
previousstring/purchaseOrders?accountNumber=111111 &productType=NETWORK&ibxs=ALL&offset=0 &limit=1URL for the previous page of results.
 

If you get “Insufficient permissions” error, contact your Master Administrator.