Skip to content

Instantly share code, notes, and snippets.

@stanwu
Created October 31, 2022 06:39
Show Gist options
  • Save stanwu/29500e2d634886df387b9f4fe64a4cb1 to your computer and use it in GitHub Desktop.
Save stanwu/29500e2d634886df387b9f4fe64a4cb1 to your computer and use it in GitHub Desktop.
const req = {
ClientDetail: {
},
RequestedShipment: {
DropOffType: 'REQUEST_COURIER',
Ship: {
Shipper: {
StreetLines: '1-16-24, Minami-gyotoku',
City: 'Ichikawa-shi, Chiba',
PostalCode: '272-0138',
CountryCode: 'JP',
},
Recipient: {
StreetLines: '63 RENMIN LU, QINGDAO SHI',
City: 'QINGDAO SHI',
PostalCode: '266033',
CountryCode: 'CN',
},
},
Packages: {
RequestedPackages: {
attributes: {
number: 1,
},
Weight: {
Value: 2,
},
Dimensions: {
Length: 13,
Width: 12,
Height: 9,
},
},
},
ShipTimestamp: getIsoDateTimeGmt(),
UnitOfMeasurement: 'SU',
Content: 'NON_DOCUMENTS',
DeclaredValue: 200,
DeclaredValueCurrecyCode: 'USD',
PaymentInfo: 'DDP',
Account: auth.accountNumber,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment