SellingApiBadRequestException #282
Unanswered
smartguyscode
asked this question in
Q&A
Replies: 2 comments 9 replies
-
Did you solve this one? Getting the same error now... Google is not very helpful, but digging through the code and hope to solve it soon :-) |
Beta Was this translation helpful? Give feedback.
4 replies
-
@abrihter @sandersuitup @smartguyscode pass payload dict as keyword arguments
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Please accept my apologies if this is a silly question, but I am a bit stuck and would really appreciate any help the community can provide.
I am trying to use this package to create multi channel fulfilment orders. I get the following error when I try to make my call:
SellingApiBadRequestException: [{'code': 'InvalidInput', 'message': 'missing value for timestamp type', 'details': ''}]
Note that I have been able to successfully authenticate, and running the example provided works great:(orders(credentials=credentials).get_orders(CreatedAfter=(datetime.utcnow() - timedelta(days=7)).isoformat()))
Detail:
credentials=dict(
refresh_token='xxx',
lwa_app_id='xxx',
lwa_client_secret='xxx',
aws_secret_key='xxx',
aws_access_key='xxx',
role_arn='xxx',
)
testpayload=json.dumps({
"marketplaceId": "A39IBJ37TRP1C6",
"sellerFulfillmentOrderId": "FBATestOrder-11",
"displayableOrderId": "TestOrder-FBAOutbound",
"displayableOrderDate": "2020-01-09T19:46:45.809Z",
"displayableOrderComment": "TestOrder",
"shippingSpeedCategory": "Standard",
"destinationAddress": {
"name": "Amazon",
"addressLine1": "20 George Street",
"addressLine2": "Suite 123",
"addressLine3": "Lane1",
"stateOrRegion": "NSW",
"countryCode": "AU",
"city": "Sydney",
"postalCode": "2000"
},
"fulfillmentAction": "Hold",
"notificationEmails": [
"test1%40amazon.com",
"test2%40amazon.com"
],
"items": [
{
"sellerSku": "SG-SH-WF-RE",
"sellerFulfillmentOrderItemId": "OrderItemID1",
"quantity": 3
}
]
})
FulfillmentOutbound(credentials=credentials).create_fulfillment_order(body=testpayload)
Beta Was this translation helpful? Give feedback.
All reactions