Orders API
Orders API Documentation
Introduction
Overview
The EuroStocks Orders-API is an interface to provide information and Manage orders.
Main Features
Orders List
Order Details
Update ProcessedByIntegrator flag
Update Order Status (Archive or Trash)
Update Order to Previous Status
Refund for Specific Order
Prerequisites
Orders API access can be granted to suppliers who wants to get information and Manage Orders, and it requires username, password and API Key to access API.
Limited support for the development process and maintenance:
Please note that all examples provided in our documentation are considered as guidelines for your development process but EuroStocks for itself is not able to directly assist with any of your preferred programming languages and/or used scripts.
Test Account
A test environment can be provided. Please ask for the test account details and all the information will be used as mention in Prerequisites on test API Base URL: https://test-orders-api.eurostocks.com/
Working with Orders API
Get Orders list
GET /api/v1/order/list/{orderStatus}/{paymentStatus}/{sortOrder}/{pageNumber}/{pageSize}/{processedByIntegrator}/{fromDate}/{toDate}/{search}
Request Parameters
orderStatus*
String
Status of the Order
paymentStatus*
String
Status of the Payment
sortOrder*
String
Sorting Order of the list
pageNumber*
Integer
Page Number of the list
pageSize*
Integer
Page Size of the list
processedByIntegrator
Boolean
Processed By Integrator Flag. Value of flag, it can be either “true” or “false”.
fromDate
String
From Date for Orders
toDate
String
To Date for Orders
search
String
Search text in the list
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
APIKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/order/list/OrderStatus_New/PaymentStatus_Paid/SortOrder_Desc/1/5Sample Success Response
Note: All the DateTime in below response is in 24-hour UTC format
Get Order Details
GET /api/v1/order/details/{orderId}/{languageISOCode}
Request Parameters
orderId*
Integer
Id of the Order (required).
languageISOCode*
String
ISO Code of the language for which you want to fetch the data (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/order/details/1488616/nlSample Success Response
Note: All the DateTime in below response is in 24-hour UTC format
Update Processed By Integrator Flag
PATCH /api/v1/order/{orderId}/{processedByIntegrator}
Request Parameters
orderId*
Integer
Id of the Order (required).
processedByIntegrator*
Boolean
Value of flag, it can be either “true” or “false” (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/order/1488616/trueUpdate Order Status
PATCH /api/v1/order/status
Request JSON Parameters
orderId*
Integer
Id of the Order
isTrash*
Boolean
Value of flag, it can be either “true” or “false” based on moving to Archive OR Trash
sendToCustomer*
Boolean
Value of flag, it can be either “true” or “false”
languageIsoCode*
String
Language ISO code Example: nl, en
remarks
String
Text for remarks which is sent in email for moving to Archive
sendInvoiceAsAttachment*
Boolean
Value of flag, it can be either “true” or “false”
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
APIKey which EuroStocks provides
Sample Success Request for Archive
https://orders-api.eurostocks.com/api/v1/order/status{
"orderId": 2119142,
"isTrash": false,
"sendToCustomer": true,
"languageIsoCode": "nl",
"remarks": "Testing Order Status Email....................",
"sendInvoiceAsAttachment": true
}Sample Success Response for Archive
{
"Status": 200,
"Message": "Order status changed to Archive",
"Result": 2119142
}Sample Success Request for Trash
https://orders-api.eurostocks.com/api/v1/order/status{
"orderId": 2119135,
"isTrash": true,
"sendToCustomer": false,
"languageIsoCode": "nl",
"remarks": "",
"sendInvoiceAsAttachment": false
}Sample Success Response for Trash
{
"Status": 200,
"Message": "Order status changed to Trash",
"Result": 2119135
}Update Order to Previous Status
PATCH /api/v1/order/previousStatus
Request JSON Parameters
orderIds*
Array
Array of Order Id's
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
APIKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/order/previousStatus {
"orderIds": [
2119142,
2119135
]
}Sample Success Response
{
"Status": 200,
"Message": "Provided orders have been successfully reverted to their previous statuses",
"Result": 0
}Refund Order
POST /api/v1/order/refund
Request JSON Parameters
orderId*
Integer
Id of the Order
amount*
Number
Amount to be refunded (should be less then total amount)
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
APIKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/order/refund{
"orderId": 2119142,
"amount": 0.05
}Sample Success Response
Get Order Statuses
GET /api/v1/orderStatus
Request Parameters
languageISOCode*
String
ISO Code of the language for which you want to fetch the data (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/orderStatus/nlSample Success Response
Get Payment Statuses
GET /api/v1/paymentStatus
Request Parameters
languageISOCode*
String
ISO Code of the language for which you want to fetch the data (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKe*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/paymentStatus/nlSample Success Response
Get Salutations
GET /api/Salutation
Request Parameters
languageISOCode*
String
ISO Code of the language for which you want to fetch the data (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/Salutation/nlSample Success Response
Get Sort Order List
GET /api/v1/sortOrder
Request Parameters
languageISOCode*
String
ISO Code of the language for which you want to fetch the data (required).
Headers
UserName*
String
Username which EuroStocks provides
Password*
String
Password which EuroStocks provides
APIKey*
String
ApiKey which EuroStocks provides
Sample Success Request
https://orders-api.eurostocks.com/api/v1/sortOrder/nlSample Success Response
Last updated