shippo-php-client
shippo-php-client copied to clipboard
Transactions array provided in order details endpoint is incomplete and incorrect.
Transaction array contained in response received by calling /orders/id
endpoint.
"transactions": [
{
"object_id": "****",
"object_status": "SUCCESS",
"label_url": "****",
"tracking_number": "****",
"test": true
}
]
Expected shape of transaction object according to docs https://goshippo.com/docs/reference#transactions
{
"object_state": "VALID",
"status": "SUCCESS",
"object_created": "2022-05-06T13:48:08.807Z",
"object_updated": "2022-05-06T13:48:10.206Z",
"object_id": "****",
"object_owner": "****",
"test": true,
"rate": "****",
"tracking_number": "****",
"tracking_status": "UNKNOWN",
"eta": null,
"tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=****",
"label_url": "****",
"commercial_invoice_url": null,
"messages": [],
"order": "****",
"metadata": "****",
"parcel": "****",
"billing": {
"payments": []
},
"qr_code_url": null
}
Other information that you might find useful:
- We are marketplace using oauth
- Order was created by our marketplace on behalf of the vendor, using vendors oauth token, that we got from shippo.
- Transaction (Shipping label) was not purchased using oauth, vendor purchased that transaction (Shipping label) from their shippo account.