We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey team. I try to get buyer customer infomation but it not work The result always return empty
This is my code testing:
package main import ( "context" "fmt" "net/http" "github.com/amzapi/selling-partner-api-sdk/ordersV0" sp "github.com/amzapi/selling-partner-api-sdk/pkg/selling-partner" "github.com/google/uuid" "github.com/pkg/errors" ) var ( ClientID = "Your ClientID" ClientSecret = "Your ClientSecret" RefreshToken = "Your RefreshToken" orderId = "Your OrderId" ) func main() { sellingPartner, err := sp.NewSellingPartner(&sp.Config{ ClientID: ClientID, ClientSecret: ClientSecret, RefreshToken: RefreshToken, }) if err != nil { panic(err) } endpoint := "https://sellingpartnerapi-na.amazon.com" seller, err := ordersV0.NewClientWithResponses(endpoint, ordersV0.WithRequestBefore(func(ctx context.Context, req *http.Request) error { req.Header.Add("X-Amzn-Requestid", uuid.New().String()) //tracking requests err = sellingPartner.AuthorizeRequest(req) if err != nil { return errors.Wrap(err, "sign error") } return nil }), ) if err != nil { panic(err) } ctx := context.Background() resp, err := seller.GetOrderItemsBuyerInfoWithResponse(ctx, orderId, &ordersV0.GetOrderItemsBuyerInfoParams{}) if err != nil { fmt.Println("[GetOrderItemsBuyerInfoWithResponse] err : ", err) panic(err) } fmt.Println(string(resp.Body)) }
The example result . BuyerCustomizedInfo always is empty
BuyerCustomizedInfo
{"payload":{"OrderItems":[{"OrderItemId":"98587589265001","BuyerCustomizedInfo":{}}],"AmazonOrderId":"113-8246998-1524200"}}
Go version: go version go1.22.2 linux/amd64 amzapi/selling-partner-api-sdk latest Permission:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey team.
I try to get buyer customer infomation but it not work
The result always return empty
This is my code testing:
The example result .
BuyerCustomizedInfo
always is emptyGo version: go version go1.22.2 linux/amd64
![image](https://private-user-images.githubusercontent.com/167730783/324734651-d5626fb2-6a81-406e-8060-9f6712e56232.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTE0NjksIm5iZiI6MTcyNDExMTE2OSwicGF0aCI6Ii8xNjc3MzA3ODMvMzI0NzM0NjUxLWQ1NjI2ZmIyLTZhODEtNDA2ZS04MDYwLTlmNjcxMmU1NjIzMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOVQyMzQ2MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mZDZjZjY5NTVkN2IxNmNjZTlmNTExMzgwNDJkZTE5NWRiMjExZjg0ZTU2MTczMjg3YTYwM2RkNmI4MmQ2YjBmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.XnW-aEwSaJHicxa2JL1QHnO_P2zRbG0cNK_I7EJdHp8)
amzapi/selling-partner-api-sdk latest
Permission:
The text was updated successfully, but these errors were encountered: