Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CartCreate : Required parameters include Items #70

Open
smurf-U opened this issue Apr 24, 2018 · 0 comments
Open

CartCreate : Required parameters include Items #70

smurf-U opened this issue Apr 24, 2018 · 0 comments

Comments

@smurf-U
Copy link

smurf-U commented Apr 24, 2018

While Create New Cart:-
Get Your request is missing required parameters. Required parameters include Items.

data = {
            'offer_id': "59PwDdXajXbVuCLg6kd7QZDCA2hWxjO%2FXqhLLQcJDzOe4mAm%2FIaKuy94kleD682oMmHsvFlXmM5guvCSnCTfaQuqU9PN%2Fq4%2Fwmm73RqOuFV9FePGy8fq4g%3D%3D",
            'quantity': 2
}
response = amazon.CartCreate(items=data)

Get Response as below:-

<?xml version="1.0" encoding="UTF-8"?>
<CartCreateResponse xmlns="http://webservices.amazon.com/AWSECommerceService/2013-08-01">
   <OperationRequest>
      <HTTPHeaders>
         <Header Name="UserAgent" Value="Python-urllib/2.7" />
      </HTTPHeaders>
      <RequestId>0f8f191a-f546-4d2b-9eb4-297f575920c1</RequestId>
      <Arguments>
         <Argument Name="AWSAccessKeyId" Value="AKIAJTJOIACOYJSJC5EA" />
         <Argument Name="AssociateTag" Value="caupd4125k-21" />
         <Argument Name="Operation" Value="CartCreate" />
         <Argument Name="Service" Value="AWSECommerceService" />
         <Argument Name="Timestamp" Value="2018-04-24T10:59:39Z" />
         <Argument Name="Version" Value="2013-08-01" />
         <Argument Name="items" Value="{'offer_id': u'59PwDdXajXbVuCLg6kd7QZDCA2hWxjO%2FXqhLLQcJDzOe4mAm%2FIaKuy94kleD682oMmHsvFlXmM5guvCSnCTfaQuqU9PN%2Fq4%2Fwmm73RqOuFV9FePGy8fq4g%3D%3D', 'quantity': u'1'}" />
         <Argument Name="Signature" Value="g9PToXIDjSrnV5CQgaEsj5I1zpiAYg8cgu/I1lxIh1A=" />
      </Arguments>
      <RequestProcessingTime>1.26464E-4</RequestProcessingTime>
   </OperationRequest>
   <Cart>
      <Request>
         <IsValid>False</IsValid>
         <CartCreateRequest>
            <Items />
         </CartCreateRequest>
         <Errors>
            <Error>
               <Code>AWS.MissingParameters</Code>
               <Message>Your request is missing required parameters. Required parameters include Items.</Message>
            </Error>
         </Errors>
      </Request>
   </Cart>
</CartCreateResponse>

As AWS documentation
image

https://docs.aws.amazon.com/AWSECommerceService/latest/DG/CartCreate.html#CartCreate-rp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant