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

Problem with Result ProductFeeV0 - Unknown DateTime format #742

Closed
simonsolutions opened this issue Jun 25, 2024 · 2 comments
Closed

Problem with Result ProductFeeV0 - Unknown DateTime format #742

simonsolutions opened this issue Jun 25, 2024 · 2 comments

Comments

@simonsolutions
Copy link
Contributor

simonsolutions commented Jun 25, 2024

Problem description:

When requesting ProductFeesV0 API the result body returns without problem. But when using the dto() function to return the response object, the call fails with
The value 2024-06-25T12:48:31.000Z uses an unknown DateTime format.

Error:

The value `2024-06-25T12:48:31.000Z` uses a unknown DateTime format.
{
  "payload": {
    "FeesEstimateResult": {
      "Status": "Success"
                  ,"FeesEstimateIdentifier": {
                "MarketplaceId": "A1PA6795UKMFR9"
                          ,"IdType": "SellerSKU"
                                  ,"SellerId": "ANxxxxxx"
                        ,"SellerInputIdentifier": "A1PA6795UKMFR9"
                        ,"IsAmazonFulfilled": true
                        ,"IdValue": "xxxxx"
                        ,"PriceToEstimateFees": {
                    "ListingPrice": {
            "CurrencyCode": "EUR",
            "Amount": 30
          }
                              ,"Shipping": {
            "CurrencyCode": "EUR",
            "Amount": 0
          }
                            }
              }
   ,"FeesEstimate": {
                "TimeOfFeesEstimation": "2024-06-25T12:47:42.000Z"
                          ,"TotalFeesEstimate": {
            "CurrencyCode": "EUR",
            "Amount": 7.88
          }
SellingPartnerApi\Exceptions\
UnknownDatetimeFormatException
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php (line 139)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: convertValueToDateTime (line 97)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserializeValue (line 69)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserialize (line 100)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserializeValue (line 69)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserialize (line 100)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserializeValue (line 69)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserialize (line 100)
in vendor/jlevers/selling-partner-api/src/Traits/Deserializes.php :: deserializeValue (line 69)
in vendor/jlevers/selling-partner-api/src/Seller/ProductFeesV0/Requests/GetMyFeesEstimateForSku.php :: deserialize (line 53)
in vendor/saloonphp/saloon/src/Http/Response.php -> createDtoFromResponse (line 310)
KhorneHoly pushed a commit to KhorneHoly/selling-partner-api that referenced this issue Jun 25, 2024
@simonsolutions
Copy link
Contributor Author

Potential fix with #744

@jlevers
Copy link
Owner

jlevers commented Jul 9, 2024

Fixed in v7.0.4.

@jlevers jlevers closed this as completed Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants