cancel
Showing results for 
Search instead for 
Did you mean: 

INVALID_TRACKING_NUMBER in live mode

Options
fijiwater
New Community Member
Posted on

I keep receiving this error when attempting to PUT tracking to a transaction:

 

{"name":"INVALID_TRACKING_NUMBER","message":"The requested resource ID was not found","debug_id":"c61695a45ef48","details":[{"field":"tracker_id","value":"1234-1234","location":"path","issue":"INVALID_TRACKING_INFO"}],"links":[]}

 

To confirm, this is in live mode, the transaction and tracking are actual numbers I happen to be testing with.

 

I've tried using the actual carrier, 'OTHER', etc. and nothing is working.

 

These are the scopes I get back, which I don't think should be interfereing because I haven't seen anything in the Tracking API that requires a specific scope to my knowledge

 

{'scope': 'https://uri.paypal.com/services/invoicing https://uri.paypal.com/services/vault/payment-tokens/read https://uri.paypal.com/services/disputes/read-buyer https://uri.paypal.com/services/payments/realtimepayment https://uri.paypal.com/services/disputes/update-seller https://uri.paypal.com/services/payments/payment/authcapture openid https://uri.paypal.com/services/disputes/read-seller Braintree:Vault https://uri.paypal.com/services/payments/refund https://api.paypal.com/v1/vault/credit-card https://api.paypal.com/v1/payments/.* https://uri.paypal.com/services/reporting/search/read https://uri.paypal.com/payments/payouts https://uri.paypal.com/services/vault/payment-tokens/readwrite https://api.paypal.com/v1/vault/credit-card/.* https://uri.paypal.com/services/subscriptions https://uri.paypal.com/services/applications/webhooks', 'access_token': '1234', 'token_type': 'Bearer', 'app_id': 'APP-1234', 'expires_in': 31826, 'nonce': '1234'}

 

I currently only need to use this app to upload tracking from shopify to paypal for a store.  I'm using live mode because shopify doesn't seem to have paypal sandbox or allow me to use sandbox emails.

 

Any help on why this isn't working?

 

Here's my code in short:

 

Python using requests

 

 

    url = f"https://api-m.paypal.com/v1/shipping/trackers/{paypal_transaction_token}-{tracking_number}"

    headers = {
        'Content-Type' : 'application/json',
        'Authorization' : 'Bearer %s' % access_token,
    }
    data = {
        "transaction_id":f"{paypal_transaction_token}",
        "tracking_number":f"{tracking_number}",
        "status":f"{status}",
        "tracking_number_type":"CARRIER_PROVIDED",
        "carrier":f"{carrier}"
    }
    response = requests.put(url, headers=headers, data=json.dumps(data))

 

 

 

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.