Amazon - Purchase Shipment with Label Customization

Carrier
Amazon
Action
Purchase Shipment with Label Customization
{
  "carrier": "amazon",
  "action": "submitshipment",
  "params": {
    "client_id": "amzn1.application-oa2-client.abc123",
    "client_secret": "your-client-secret",
    "refresh_token": "Atzr|your-refresh-token",
    "application_id": "AmazonShipping_US",
    "request_token": "amzn1.rq.00607789216708.101",
    "rate_id": "12345678908c5343a087e10a5a2261ff36b83bdb5a91c6ce51b19586ed98615072005809431",
    "image_type": "ZPL",
    "label_attributes": ["PACKAGE_CLIENT_REFERENCE_ID"]
  }
}

<?php
$rs = new RocketShipIt;
$response = $rs->request(
array (
  'carrier' => 'amazon',
  'action' => 'submitshipment',
  'params' => 
  array (
    'client_id' => 'amzn1.application-oa2-client.abc123',
    'client_secret' => 'your-client-secret',
    'refresh_token' => 'Atzr|your-refresh-token',
    'application_id' => 'AmazonShipping_US',
    'request_token' => 'amzn1.rq.00607789216708.101',
    'rate_id' => '12345678908c5343a087e10a5a2261ff36b83bdb5a91c6ce51b19586ed98615072005809431',
    'image_type' => 'ZPL',
    'label_attributes' => 
    array (
      0 => 'PACKAGE_CLIENT_REFERENCE_ID',
    ),
  ),
)
);

rs.request(
  {'action': 'submitshipment',
 'carrier': 'amazon',
 'params': {'application_id': 'AmazonShipping_US',
            'client_id': 'amzn1.application-oa2-client.abc123',
            'client_secret': 'your-client-secret',
            'image_type': 'ZPL',
            'label_attributes': ['PACKAGE_CLIENT_REFERENCE_ID'],
            'rate_id': '12345678908c5343a087e10a5a2261ff36b83bdb5a91c6ce51b19586ed98615072005809431',
            'refresh_token': 'Atzr|your-refresh-token',
            'request_token': 'amzn1.rq.00607789216708.101'}}

)

rs.request(
  {"carrier"=>"amazon",
 "action"=>"submitshipment",
 "params"=>
  {"client_id"=>"amzn1.application-oa2-client.abc123",
   "client_secret"=>"your-client-secret",
   "refresh_token"=>"Atzr|your-refresh-token",
   "application_id"=>"AmazonShipping_US",
   "request_token"=>"amzn1.rq.00607789216708.101",
   "rate_id"=>
    "12345678908c5343a087e10a5a2261ff36b83bdb5a91c6ce51b19586ed98615072005809431",
   "image_type"=>"ZPL",
   "label_attributes"=>["PACKAGE_CLIENT_REFERENCE_ID"]}}

)

rocketshipit.request(
  {
  "carrier": "amazon",
  "action": "submitshipment",
  "params": {
    "client_id": "amzn1.application-oa2-client.abc123",
    "client_secret": "your-client-secret",
    "refresh_token": "Atzr|your-refresh-token",
    "application_id": "AmazonShipping_US",
    "request_token": "amzn1.rq.00607789216708.101",
    "rate_id": "12345678908c5343a087e10a5a2261ff36b83bdb5a91c6ce51b19586ed98615072005809431",
    "image_type": "ZPL",
    "label_attributes": ["PACKAGE_CLIENT_REFERENCE_ID"]
  }
}
)

← All Amazon examples