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

I checked the waiting list of bills and took the latest Euro bill. Why is it inconsistent with the backend? #9522

Open
a785817258 opened this issue Jul 27, 2024 · 22 comments

Comments

@a785817258
Copy link

image
Allegro Api:/payments/payment-operations
Allegro request params:{"currency":"EUR","offset":0,"limit":50,"wallet.type":"WAITING"}
Allegro status:200 response:{"paymentOperations":[{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"36.14","currency":"EUR"}},"occurredAt":"2024-07-08T19:58:46.820Z","value":{"amount":"12.83","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"56b96839-3d64-11ef-8503-8333eeb576e5"},"participant":{"id":"123704171","companyName":null,"login":"Client:123704171","firstName":"Andrej","lastName":"Vajda","address":{"street":"Kyncelove Kracany . / 55","city":"Kostolne Kracany","postCode":"93003"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"191.10","currency":"EUR"}},"occurredAt":"2024-07-17T06:41:15.372Z","value":{"amount":"18.63","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"5c7b50fa-4407-11ef-8b95-91df3ab0ceb7"},"participant":{"id":"123981493","companyName":null,"login":"Client:123981493","firstName":"DOMINIKA","lastName":"ČERVEŇOVÁ","address":{"street":"Dolné Hámer 274 / 274","city":"HODRUŠA-HÁMRE","postCode":"96661"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"208.63","currency":"EUR"}},"occurredAt":"2024-07-19T13:16:21.443Z","value":{"amount":"17.53","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"f3283fa8-45d0-11ef-90e3-c53c9c812ba8"},"participant":{"id":"124051982","companyName":null,"login":"Client:124051982","firstName":"Marián František","lastName":"Švarba","address":{"street":"Hosťovce 74 / 74","city":"Hosťovce","postCode":"95191"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"220.35","currency":"EUR"}},"occurredAt":"2024-07-20T16:15:52.951Z","value":{"amount":"11.72","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"1e0eee8a-46b3-11ef-ac67-7f54ae529bf4"},"participant":{"id":"124078435","companyName":null,"login":"Client:124078435","firstName":"Mária","lastName":"Kavčáková","address":{"street":"Námestie oceliarov 532/19 / 47","city":"Košice - Šaca","postCode":"04015"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"248.11","currency":"EUR"}},"occurredAt":"2024-07-20T17:43:39.776Z","value":{"amount":"27.76","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"5c31f3c5-46bf-11ef-90e3-c53c9c812ba8"},"participant":{"id":"124080350","companyName":null,"login":"Client:124080350","firstName":"Uliana","lastName":"Maslova","address":{"street":"Vajanského 18","city":"Trnava","postCode":"917 01"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"286.04","currency":"EUR"}},"occurredAt":"2024-07-23T09:45:00.259Z","value":{"amount":"37.93","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"146ae4d2-48d8-11ef-ac67-7f54ae529bf4"},"participant":{"id":"124161511","companyName":null,"login":"Client:124161511","firstName":"Diana","lastName":"Filipp","address":{"street":"Malé Tatry 5 / 5","city":"Ružomberok","postCode":"034 01"}}}],"count":6,"totalCount":6}
6
{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":286.04,"currency":"EUR"}}
2024-07-23T09:45:00.259
The amount in the backend is 126.40, but the amount returned by the API is not updated in time

@AureliuszBrussy
Copy link
Collaborator

Can you send the trace-id of the request? You can find the trace-id in the header of our response. This will allow me to check the cause more accurately.

@a785817258
Copy link
Author

@AureliuszBrussy a7fe7bc2eaf189d31

@AureliuszBrussy
Copy link
Collaborator

Are you sure this is the correct trace-id? Unfortunately, I can't find it in the logs. Can you send some other examples?

@a785817258
Copy link
Author

@AureliuszBrussy Allegro trace-id:2e6739e9fbf7d0ac

@AureliuszBrussy
Copy link
Collaborator

This is also an incorrect trace-id - from request to GET /marketplaces.

@a785817258
Copy link
Author

How do I get the trace-id? Isn't it in the header returned by your API?

@a785817258
Copy link
Author

Allegro Api:/marketplaces
Allegro request params:null
Allegro trace-id:4ba60fbc84496461
Allegro status:200 response:{"marketplaces":[{"id":"allegro-pl","languages":{"offerCreation":[{"code":"en-US"},{"code":"pl-PL"}],"offerDisplay":[{"code":"en-US"},{"code":"pl-PL"},{"code":"uk-UA"}]},"currencies":{"base":{"code":"PLN"},"additional":[{"code":"EUR"}]},"shippingCountries":[{"code":"AT"},{"code":"BE"},{"code":"BG"},{"code":"CZ"},{"code":"DE"},{"code":"DK"},{"code":"EE"},{"code":"ES"},{"code":"FI"},{"code":"FR"},{"code":"GR"},{"code":"HR"},{"code":"HU"},{"code":"IE"},{"code":"IT"},{"code":"LT"},{"code":"LU"},{"code":"LV"},{"code":"NL"},{"code":"PL"},{"code":"PT"},{"code":"RO"},{"code":"SE"},{"code":"SI"},{"code":"SK"}]},{"id":"allegro-cz","languages":{"offerCreation":[{"code":"cs-CZ"}],"offerDisplay":[{"code":"cs-CZ"}]},"currencies":{"base":{"code":"CZK"},"additional":[]},"shippingCountries":[{"code":"CZ"}]},{"id":"allegro-business-cz","languages":{"offerCreation":[{"code":"cs-CZ"}],"offerDisplay":[{"code":"cs-CZ"}]},"currencies":{"base":{"code":"CZK"},"additional":[]},"shippingCountries":[{"code":"CZ"}]},{"id":"allegro-sk","languages":{"offerCreation":[{"code":"sk-SK"}],"offerDisplay":[{"code":"sk-SK"}]},"currencies":{"base":{"code":"EUR"},"additional":[]},"shippingCountries":[{"code":"SK"}]}]}
@AureliuszBrussy

@AureliuszBrussy
Copy link
Collaborator

I need the trace-id of this specific request - where you get GET /payments/payment-operations response with those incorrect data. A random trace-id from a request under the wrong endpoint will do nothing for me.

@a785817258
Copy link
Author

a785817258 commented Jul 30, 2024

Allegro Api:/payments/payment-operations
Allegro request params:{"walletType":"WAITING","currency":"EUR","offset":0,"limit":50,"wallet.type":"WAITING"}
Allegro trace-id:a55c23d67c547940
Allegro status:200 response:{"paymentOperations":[{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"36.14","currency":"EUR"}},"occurredAt":"2024-07-08T19:58:46.820Z","value":{"amount":"12.83","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"56b96839-3d64-11ef-8503-8333eeb576e5"},"participant":{"id":"123704171","companyName":null,"login":"Client:123704171","firstName":"Andrej","lastName":"Vajda","address":{"street":"Kyncelove Kracany . / 55","city":"Kostolne Kracany","postCode":"93003"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"208.63","currency":"EUR"}},"occurredAt":"2024-07-19T13:16:21.443Z","value":{"amount":"17.53","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"f3283fa8-45d0-11ef-90e3-c53c9c812ba8"},"participant":{"id":"124051982","companyName":null,"login":"Client:124051982","firstName":"Marián František","lastName":"Švarba","address":{"street":"Hosťovce 74 / 74","city":"Hosťovce","postCode":"95191"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"248.11","currency":"EUR"}},"occurredAt":"2024-07-20T17:43:39.776Z","value":{"amount":"27.76","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"5c31f3c5-46bf-11ef-90e3-c53c9c812ba8"},"participant":{"id":"124080350","companyName":null,"login":"Client:124080350","firstName":"Uliana","lastName":"Maslova","address":{"street":"Vajanského 18","city":"Trnava","postCode":"917 01"}}},{"type":"CONTRIBUTION","group":"INCOME","wallet":{"paymentOperator":"PAYU","type":"WAITING","balance":{"amount":"286.04","currency":"EUR"}},"occurredAt":"2024-07-23T09:45:00.259Z","value":{"amount":"37.93","currency":"EUR"},"marketplaceId":"allegro-sk","payment":{"id":"146ae4d2-48d8-11ef-ac67-7f54ae529bf4"},"participant":{"id":"124161511","companyName":null,"login":"Client:124161511","firstName":"Diana","lastName":"Filipp","address":{"street":"Malé Tatry 5 / 5","city":"Ružomberok","postCode":"034 01"}}}],"count":4,"totalCount":4}

@AureliuszBrussy

@AureliuszBrussy
Copy link
Collaborator

@a785817258 and that differs from what you see in the tab on the site?

@a785817258
Copy link
Author

a785817258 commented Jul 31, 2024

image
allegro waiting The euro balance does not match the euro balance of the API
allegro waiting Euro balance 96.05, the balance of 96.05 was not found in the data returned by the API
@AureliuszBrussy

@AureliuszBrussy
Copy link
Collaborator

@a785817258 are you sure it is the correct account - same as in the API request? Could you please provide your account login?

@a785817258
Copy link
Author

@AureliuszBrussy sellerId=112015823

@AureliuszBrussy
Copy link
Collaborator

Thank you, I am clarifying this with the team responsible for the balance.

@AureliuszBrussy
Copy link
Collaborator

We know what the reason is - the missing amount has already been transferred to the available balance from the waiting balance. We do not list such internal transfers between balances in operations so it will not be visible.

@a785817258
Copy link
Author

@AureliuszBrussy Will the API be fixed?

@AureliuszBrussy
Copy link
Collaborator

It's not exactly a matter of fixing, but adding a possible missing feature, namely the ability to get the current balance (at the moment of request). You can make such a suggestion in the Discussions tab. If we note broader interest in such a feature, we will implement it.

@a785817258
Copy link
Author

Is there any way to calculate this amount from the get /order/checkout-forms API?

@AureliuszBrussy
Copy link
Collaborator

No, there is no way to do it.

@a785817258
Copy link
Author

Is there any other way? I really need this data.

@AureliuszBrussy
Copy link
Collaborator

No, there is no other way I know of.

Copy link

stale bot commented Aug 10, 2024

W tym wątku nie pojawiła się żadna nowa odpowiedź w ciągu 7 dni, dlatego automatycznie oznaczamy go jako przeterminowany. Jeśli w ciągu kolejnych 7 dni nie pojawi się żadna odpowiedź, wątek zostanie zamknięty. Dziękujemy za zaangażowanie w dyskusję i zachęcamy Cię do wypełnienia ankiety dotyczącej naszego wsparcia na forum.


There was no new reply in this thread within 7 days, therefore, we automatically marked it as expired. If no response is received within the next 7 days, this thread will be closed. Thank you for engaging in the discussion. We encourage you to complete our forum support survey.

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

No branches or pull requests

2 participants