Insert shipments (or ‘orders’) into an API integration from your shop system, and have them appear in your Sendcloud account.
external_order_id and external_shipment_id), then the shipment will be updated. The system will only update orders that have had their updated_at (ISO 8601 DateTime) timestamp changed.
The external_shipment_id field is used to split orders across multiple shipments, however, this field is not supported by all shop systems. If your shop system supports the distribution of product items within an order across multiple shipments, you can use the shipment data to create multiple entries. If your shop does not support this feature, you can set the external_shipment_id value to null.
Batches are limited to 100 orders at once. This endpoint should accept most values in any of the available fields, but in the case of erroneous data, an error message will be returned directly. Your requests should almost always succeed unless the field structure is not correct.Basic Authentication using API key and secrets is currently the main authentication mechanism.
The id of the integration to which the shipments belong
11A country represented by its ISO 3166-1 alpha-2 code
AW, AF, AO, AI, AX, AL, AD, AE, AR, AM, AS, AQ, TF, AG, AU, AT, AZ, BI, BE, BJ, BQ, BF, BD, BG, BH, BS, BA, BL, BY, BZ, BM, BO, BR, BB, BN, BT, BV, BW, CF, CA, CC, CH, CL, CN, CI, CM, CD, CG, CK, CO, KM, CV, CR, CU, CW, CX, KY, CY, CZ, DE, DJ, DM, DK, DO, DZ, EC, EG, ER, EH, ES, EE, ET, FI, FJ, FK, FR, FO, FM, GA, GB, GE, GG, GH, GI, GN, GP, GM, GW, GQ, GR, GD, GL, GT, GF, GU, GY, HK, HM, HN, HR, HT, HU, ID, IM, IN, IO, IE, IR, IQ, IS, IL, IT, JM, JE, JO, JP, KZ, KE, KG, KH, KI, KN, KR, KW, LA, LB, LR, LY, LC, LI, LK, LS, LT, LU, LV, MO, MF, MA, MC, MD, MG, MV, MX, MH, MK, ML, MT, MM, ME, MN, MP, MZ, MR, MS, MQ, MU, MW, MY, YT, NA, NC, NE, NF, NG, NI, NU, NL, NO, NP, NR, NZ, OM, PK, PA, PN, PE, PH, PW, PG, PL, PR, KP, PT, PY, PS, PF, QA, RE, RO, RU, RW, SA, SD, SN, SG, GS, SH, SJ, SB, SL, SV, SM, SO, PM, RS, SS, ST, SR, SK, SI, SE, SZ, SX, SC, SY, TC, TD, TG, TH, TJ, TK, TM, TL, TO, TT, TN, TR, TV, TW, TZ, UG, UA, UM, UY, US, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, YE, ZA, ZM, ZW, IC, XK "NL"
Timestamp indicating when the shipment was created in the shop system. This value will be saved and accessible through shipment_created_at field in GET response.
"2022-05-07T15:08:12.152000Z"
ISO 4217 currency code
EUR, USD, GBP 1Your own commercial invoice number
"120"
Type of shipment for customs purposes:
0 - Gift1 - Documents2 - Commercial Goods3 - Commercial Sample4 - Returned Goods0, 1, 2, 3, 4 0 <= x <= 4External order ID assigned by the shop system
1External shipment ID assigned by the shop system
11Unique order number generated manualy or by the shop system
1List of items the parcel contains
1Human readable shipping method name
1001Timestamp indicating when the shipment was updated in the shop system. This value will be saved and accessible through shipment_updated_at field in GET response.
"2022-05-07T15:08:12.152000Z"
Foreign key indicating shipping method used
1234
The total price of an order
Total weight of the order. Cannot be smaler than 0.001
10"10.2"
Volumetric weight width
10"10.2"
Volumetric weight height
10"10.2"
Volumetric weight length
10"10.2"
Customs information related to this shipment
List with references to created shipments, or the errors that occurred while creating the shipment. When a shipment can't be created, the response will contain an entry for the object with the errors. This object will have a path to each field containing errors, listing the error(s) it contains.