-
Notifications
You must be signed in to change notification settings - Fork 18
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 change price #15
Comments
Musisz przekazać całą strukturę ceny, a nie samego integera (swoją drogą nie integera, tylko stringa): $response = $api->offers(8198330586)->commands()->change_price(
[
'input' => [
'buyNowPrice' => [
'amount' => '1400',
'currency' => 'PLN'
]
]
]
) https://developer.allegro.pl/command/ |
dzieki doszedł już do tego a jak sie zachować w przypadku checi zmiany statusu aukcji tzn jej zawieszenia $api->offers()->commands()->offer_publication($data2);` daje |
Próbujesz robić requesta na złym zasobie. Spróbuj |
no tak ... Dziękuje bardzo:) |
zwraca mi coś takiego i nie zamyka aukcji |
mam problem ze zmianą ceny
$response=$api->offers(8198330586)->commands()->change_price(intval(intval("1400")));
zwraca mi błąd
{"errors":[{"code":"JsonMappingException","message":"Can not construct instance of pl.allegro.offercore.service.common.msg.command.ChangePriceMessage: no int/Int-argument constructor/factory method to deserialize from Number value (1400)\n at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@4d1fca34; line: 1, column: 1]","details":"JsonMappingException","path":null,"userMessage":null
The text was updated successfully, but these errors were encountered: