OrderDeleteAPI v6
OrderDeleteAPI v6
OrderDeleteAPI v6
1
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Authentication ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5
Request ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5
Sample Request -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5
Response --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 5
Sample Response ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 6
2
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
3
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Document Revision
Date Version Description
18/05/2021 1.0 Initial draft
03/12/2021 1.1 Added DK and FI information and ESD warehouse IDs
API Description
OrderDeleteAPI is a RESTful API for deleting sales orders on ecommerce customer hold (orders placed with the “allowOrderOnCustomerHold = true” option.
What is RESTful?
Representational State Transfer (REST) is a software architectural style that defines a set of constraints to be used for creating Web services. Web services
that conform to the REST architectural style, called RESTful Web services (RWS), provide interoperability between computer systems on the Internet.
RESTful Web services allow the requesting systems to access and manipulate textual representations of Web resources by using a uniform and predefined
set of stateless operations.
4
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Authentication
API authentication is provided through OAuth 2.0. OAuth 2.0 is an authorization type that enables you to approve an application that contacts another
application for you without exposing your password. A token is requested from the Access Token URL by providing the App ID and Client Secret assigned to
your application in the Ingram Micro Partner Central portal. The issued token is valid for 24 hours and should be included in the Authorization HTTP header
when calling the API.
Request
Item Value
Access Token URL https://api.ingrammicro.com/oauth/oauth30/token
Method POST
Content-Type application/x-www-form-urlencoded
Form field 1 name grant_type
Form field 1 value client_credentials
Form field 2 name client_id
Form field 2 value Your application App ID
Form field 3 name client_secret
Form field 3 value Your application Shared Secret
Sample Request
POST https://api.ingrammicro.com/oauth/oauth30/token
grant_type=client_credentials=&client_id=W83TU6HBE9cOVdwB6ngroBnV4Lrw2KBI&client_secret=nqZJXval4dWI3SXf
Response
Item Value
access_token Your access token
token_type Bearer
expires_in Token expiry (seconds)
5
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Sample Response
{
"access_token": "ml3aA1Z62Yi1R6k634hl9Ga84lmz",
"token_type": "Bearer",
"expires_in": "86399"
}
6
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
System Availability
During normal operating conditions, APIs should be available during weekdays between the times listed in the table below. Ingram Micro endeavours to
limit planned maintenance activities to evenings and weekends. These outages will be communicated in advance where possible. API availability may be
limited during weekends and public holidays.
Rate Limiting
This API is subject to rate limiting. Rate limiting ensures fair access to API resources for all users and prevents performance degradation due to excessive
transaction volumes.
Rate limits can be monitored by checking special HTTP headers returned in the API response
If a rate limit is exceeded, an HTTP 429 response code will be returned (Too Many Requests). No further API calls will be allowed until the rate limiting reset
period is reached.
7
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Customer Account Country ERP Local Local Warehouse Central Central Warehouse ESD Warehouse
Warehouse locations Warehouse location ID
IDs ID (Virtual Products)
AT Impulse 28 Vienna, Austria N/A N/A 51
44 Straubing, DE
BE SAP NL01 Tilburg, NL PEDE Straubing, DE 51
PE02 Tilburg, NL
CH Impulse 27 Altishofen, CH N/A N/A 51
44 Straubing, DE
DE Impulse 44 Straubing, DE N/A N/A 51
DK Impulse 30 Rosersberg, SE 81 Straubing, DE 51
33 Rosersberg, SE
ES Impulse 29 Tarragona, ES 81 Straubing, DE 51
78 Tarragona, ES
43 Madrid, ES
FI Impulse 31 Rosersberg, SE 81 Straubing, DE 51
33 Rosersberg, SE
FR Impulse 21 Lomme, FR 81 Straubing, DE 51
82 Lomme, FR
HU Impulse 40 Fót, HU N/A N/A 51
44 Straubing, DE
IT Impulse 23 Settala, IT 81 Straubing, DE 51
86 Settala, IT
NL SAP NL01 Tilburg, NL PEDE Straubing, DE 51
PE02 Tilburg, NL
PT Impulse 26 Sintra, PT 81 Straubing, DE 51
8
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
9
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
API Request
Setting Value
Production Endpoint URL https://api.ingrammicro.com/resellers/v6/orders/{salesOrderNumber}*
Sandbox Endpoint URL https://api.ingrammicro.com/sandbox/resellers/v6/orders/{salesOrderNumber}*
Method DELETE
*replace {salesOrderNumber} with the Ingram Micro sales order number or Ingram Micro sales sub-order number
Request Headers
Header Value
Accept application/json
IM-CorrelationID A unique identifier for the API call. A GUID/UUID is recommended
IM-CountryCode Country code
IM-CustomerNumber Customer’s Ingram Micro account number
IM-SenderID Sender identifier. This is a free-text value that the customer can set
Authorization Bearer<space> + your access token (for example, Bearer 7b7888117cb72c437a3748554734fe2bd8b8c795)
Sample Request
DELETE https://api.ingrammicro.com/resellers/v6/orders/20-12345
10
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
API Response
A response body will only be provided in the event of an error. An HTTP 200 response status will indicate the successful deletion of the order.
Field Descriptions
Error Collection
Name Parent Type Data Min,Max Description
Type Occurrence
errors Root object Array 0,1 Error collection
id errors Parameter String 1,1 Error identifier
type errors Parameter String 1,1 Error type
message errors Parameter String 1,1 Error message
11
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
12
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
504 Gateway Timeout This error response is given when the server is acting as a Retry the transaction. If the error persists,
gateway and cannot get a response in time contact your local ecommerce representative
13
© Ingram Micro EMEA 2021
OrderDeleteAPI v6
Recommended Tests
Scenario Context
Invalid Access token Always test this scenario
Use valid sales order number Always test this scenario
Use invalid sales order number Always test this scenario
Use valid sales sub-order number Test if you intend to use this option
Use invalid sales sub-order number Test if you intend to use this option
Delete an order that is not on ecommerce customer hold Always test this scenario
Delete an order that has already been deleted Always test this scenario
14
© Ingram Micro EMEA 2021