Supplier Integration | YourSurprise

Supplier Integration | YourSurprise

This is a new Supplier Integration made to connect with the YourSurprise API.

Settings
Username & Password:
These are YourSurprise specific settings, They should be provided by YourSurprise to the customer when they set up an account with YourSurprise.

SetUp
The Product SKU should be one of YourSurprise's ArtikleCode IDs.
Please see attached document for a list of the Artikle Code Ids. Each Artikle Code id has a corresponding print dimension and the id used should be chosen based on the print dimensions of the artwork being sent.

Workflow
The following data will be sent for each order

<?xml version="1.0" encoding="UTF-8"?>
<shipments timestamp="1551186513">
<shipment>
<orderid>order.external_ref</orderid>
<customer>
<salutation></salutation>
<firstname>
<![CDATA[]]>
</firstname>
<infix></infix>
<lastname>
<![CDATA[order.customer_name]>
</lastname>
<address>
<street>
<![CDATA[order.shipping_address_2]]>
</street>
<number>order.shipping_address_1</number>
<zipcode>order.shipping_postcode</zipcode>
<city>
<![CDATA[order.shipping_address_4]]>
</city>
<countrycode>order.shipping_country_code</countrycode>
</address>
</customer>
<artikelen>
<artikel>
<artikelcode>item.mapped_sku</artikelcode>
<printfile>print_job_artwork_url</printfile>
<aantal>item.quantity</aantal>
</artikel>
</artikelen>
</shipment>
</shipments>

Once the order is sent to YourSurprise the order will be moved to sent to supplier and have an attribute labelled ‘:YourSurprise OrderID’ added to the order with the value being the Order Id from YourSurprise.

When the status on the order is changed by YourSurprise to 'SENT', OMS should set the status on the order to 'Dispatched'