Order API
Order-related API features
Order requests
limit
Hits within a page (default: 100, maximum: 1000)
page
Number of the requested page (default: 0)
wspyId
Internal ID, API returns it when an order is created
referenceId
External ID, the ID given when an order is created
referenceName
Order's name, the name given when an order is created
paymentStatus
Payment status (e.g.: paid
, pending
, etc.)
paymentGateway
Method of payment (e.g.: cod
, card
, etc.)
lastMod
Last modification's date. Lists even several created or modified orders after the given date.
Filtering terms listed above are linked with AND
, you need to add only the terms that you'd like to filter.
In case of XML:
Url: https://app.webshippy.com/wspyapi/GetOrder/xml
Request:
Response (example):
In case of a failed request (example):
In case of JSON:
Url: https://app.webshippy.com/wspyapi/GetOrder/json
Request:
Response (example):
In case of a failed request (example):
Field
Description
status
Action's result. Possible values: success
, error
message
Error messages are in this field in case of a failed request
result
Results of a successful request are in this field as a block in each case
wspyId
The Internal ID, API returns it when an order is created
status
Order's status, possible values:
new
: New
draft
: Draft
ready
: Ready
packing
: Packing
fulfilled
: Packed
refused
: Refused
referenceId
External ID, the ID given when an order is created
referenceName
Order's name, the name given when an order is created
createdAt
(Original) time when the order got created
fulfilledAt
Time when the order got packed
paymentStatus
Payment status
paidAt
In case it is paid, the time of payment
codAmount
Amount of Cash On Delivery
codCurrency
Currency of Cash On Delivery
codStatus
Status of Cash On Delivery
codReceivedAt
When the Cash On Delivery got recieved
trackingCode
Tracking code of the courier service
invoiceUrl
invoiceStatus
Invoice status
uninvoiced
: Not yet invoiced
invoiced
: Invoiced
storno
: Canceled
invoiceCreatedAt
Time when the invoice got created
invoiceNo
ID number of invoice
refusedInvoiceNo
Canceled invoice's ID number
refusedDate
Time of package return, and date of canceled invoice
updatedAt
Date of last modification in our system
products
Products in an order, only in block form
sku
Product's SKU, item number
productName
Product's name
variantName
Product variant name
priceGross
Product's gross selling price
vat
VAT key
quantity
Ordered quantity
serial
Unique identifier affixed to the product at the time of packaging (optional)
Generating and modifying orders
With this function you can create and modify your orders. In case the order does not have a referenceId
, the API will generate one. In case you do have, and the status of the existing order is new, or draft, or there has not been manual modification, then the API modifies it. In case of a successful generation or modification, API gives back the order's Internal ID.
Field
Required?
Description
apiKey
Yes
API key
order
Yes
Order's details in generation or modification
referenceId
Yes
External ID, free word, recommended to use the order's ID
referenceName
No
Order name, free word, recommended to use the order's ID or a name created with it, for example ORDER#1221
createdAt
Yes
Time of order's creation
shipping
Yes
Delivery data
shipping.name
Yes
Recipient's name
shipping.company
No
Company name
shipping.email
No
E-mail address
shipping.phone
No
Phone number
shipping.countryCode
Yes
Two-digit country code (e.g.: HU
)
shipping.stateOrProvinceCode
No
State, Province ( especially when addressed abroad)
shipping.zip
Yes
Post code
shipping.city
Yes
City
shipping.address1
Yes
First line of address
shipping.address2
No
Second line of address
shipping.note
No
Title's note, use of <![CDATA[]]>
recommended
shipping.mode
No
Transfer method, possible values:
GLS-HU
,DPD-HU,
FOXPOST-HU
,DHL
,SPRINTER
,CSOMAGKULDO-HU
MPL.
shipping.packPoint
No
Type of Pack point, possible values:
GLS-HU
,DPD-HU,
FOXPOST-HU
,SPRINTER
,CSOMAGKULDO-HU
MPL,
EUSHIPMENTS-328-ROMANIA-SAMEDAY,
EUSHIPMENTS-643-POLAND-INPOST-LOCKERS,
EUSHIPMENTS-722-CROATIA-GLS-LOCKERS,
EUSHIPMENTS-15-BULGARIA-ECONT.
shipping.packPointId
No
Pack point's ID
billing
No*
Billing data, requested when we invoice
billing.name
Yes
Invoice name
billing.company
No
Company name
billing.taxNumber
No
Tax number
billing.phone
No
Phone number
billing.countryCode
Yes
Two-digit country code (e.g.: HU
)
billing.zip
Yes
Post code
billing.city
Yes
City
billing.address1
Yes
First line of address
billing.address2
No
Second line of address
payment
Yes
Information about payment
payment.paymentMode
Yes
Payment method, uses smart surveying, recommended values: cod
, card
, paypal
, etc.
payment.codAmount
No
Amount of Cash On Delivery, may differ from total, courier recieves it as COD amount
payment.paymentStatus
Yes
Payment status, possible values: paid
, pending
. Other cases require consultation
payment.paidDate
No*
Date of payment, reuired if the status is paid
payment.shippingPrice
No
Price of delivery fee (Gross)
payment.shippingVat
No
Price of delivery fee's VAT key
payment.currency
Yes
Currency of order, three-digit (ISO) ID e.g.: HUF
payment.discount
No
Discount from Total
products
No
Products in the Order
products.sku
Yes
Product's SKU, item number
products.productName
Yes
Product's name
products.variantName
No
Product variant name
products.priceGross
Yes
Product's gross selling price
products.vat
Yes
VAT key
products.quantity
Yes
Ordered quantity
invoiceUrl
No
Required when API connection has Manual PDF invoice system (in this case the system uses it)
pdfSource
No
PDF format invoice file with base64 coding
Required when API connection has Manual PDF invoice system
In case of XML:
Url: https://app.webshippy.com/wspyapi/CreateOrder/xml
Request:
Response (example):
In case of JSON:
Url: https://app.webshippy.com/wspyapi/CreateOrder/json
Request:
Response (example):
Additional response possibilities:
The order creation was successful
The order modification was successful
Order's delete
In case of JSON:
Url: https://app.webshippy.com/wspyapi/deleteOrder/json
Request:
In case of XML:
Url: https://app.webshippy.com/wspyapi/deleteOrder/xml
Request:
Filtering terms
Description
wspyId
The Internal ID, API returns it when an order is created
referenceId
External ID, the ID given when an order is created
referenceName
Order's name, the name given when an order is created
Only one order can be deleted at a time! An order which has been manually modified by a user in Webshippy can not be deleted with API request.
Last updated