Untitled Document
Results 1 to 6 of 6

Thread: create and download shipping label

  1. #1
    which API calls do I use to create and download a FedEx shipping label ?

  2. #2

    Join Date
    Apr 2004
    Posts
    16,808
    SYSOPS is offline
    Is this ShipRush Web? If so, you'd be making calls to this endpoint: shipment/ship

    You'll want to reference Sections 9.6 for print control options and 9.7 for ship functions

    HTH,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  3. #3
    I am currently stuck with this error. I am using the provided test file, from the documentation zip file: ship_fdx_gnd_dom_laser.req .
    I believe this is the same structure as page 33 in the documentation also.
    I am sending the request like this:

    curl -k -X POST https://sandbox.api.my.shiprush.com/.../shipment/ship -H "X-SHIPRUSH-SHIPPING-TOKEN:hiding-this-from-public" -H "Content-Type:application/xml" -d -H "Content-Type:application/xml" -d @ship_fdx_gnd_dom_laser.req

    and receiving this error

    <Error xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><Message>The data at the root level is invalid. Line 1, position 1.</Message><Details></Details><CallContextId>774f1f83-855a-43a3-8d1d-c5bdea63899e</CallContextId><ComputerName>SBOX3-WIN2012R2</ComputerName></Error>curl: (3) Port number ended with 'a'

  4. #4

    Join Date
    Apr 2004
    Posts
    16,808
    SYSOPS is offline
    Are you sending this to your own sandbox account, or the one provided in the example cURL examples? I ran the above command from a cmd prompt with the provided sandbox account, and got a shipment response back with label.

    Thank you,
    SYSOPS
    Have Questions? Ask the ShipRush Knowledge Base: https://shiprush.com/kbase
    Reply With Quote

  5. #5
    I'm using our own X-SHIPRUSH-SHIPPING-TOKEN . Otherwise, the information which I posted is what I'm doing. I'm not sure if you're asking me if I'm using a different URL endpoint or api token , or what "your own sandbox account" really means in technical terms of the request and response.

  6. #6
    I got it to work . I had an extra -d parameter in my command. Thanks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •