Amazon-SP-API-CSharp
Amazon-SP-API-CSharp copied to clipboard
Vendor Direct APIs - VendorDirectFulfillmentOrders
Hi, Has anyone used any of the Vendor Direct APIs succesfully? I see it implemented but no examples, so just wanted to check that it works for some, before I spend time trying to figure out the issue.
When I call the API I am getting this error:
_FikaAmazonAPI.AmazonSpApiSDK.Models.Exceptions.AmazonInvalidSignatureException: 'The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
The Canonical String for this request should have been 'GET /vendor/directFulfillment/orders/v1/purchaseOrders SortOrder=0&Status=0&createdAfter=2023-01-20T11%3A33%3A40.440Z host:sellingpartnerapi-fe.amazon.com x-amz-access-token:Atza|IwEBIPcsoSCn-EkrS.... x-amz-date:20230419T233343Z x-amz-security-token:FwoGZXIvY....
host;x-amz-access-token;x-amz-date;x-amz-security-token e3b0c....
The String-to-Sign should have been 'AWS4-HMAC-SHA256 20230419T233343Z 20230419/us-west-2/execute-api/aws4_request 463,,,,' '_