Problem mit der Preis- und Lagerbestandsaktualisierung von Amazon SP-APIJavaScript

Javascript-Forum
Guest
 Problem mit der Preis- und Lagerbestandsaktualisierung von Amazon SP-API

Post by Guest »

Code: Select all

 `   let response;
let submissionId;

const replaceBodyData = {
productType : productType,
patches: [
{
op: 'replace',
path: '/attributes/purchasable_offer',
value: [{
marketplace_id: MARKETPLACE_ID,
currency: 'TRY',
purchasable_offer: [{
"our_price": [
{"schedule": [{"value_with_tax": price}]}
],
}],
}]
},
{
op: 'replace',
operation_type: 'PARTIAL_UPDATE',
path: '/attributes/fulfillment_availability',
value: [{
fulfillment_channel_code: 'DEFAULT',
quantity: String(quantity),
marketplace_id: MARKETPLACE_ID,
}]
},
]
};`

Code: Select all

`[DEBUG] getListingsItem SUCCESS yan─▒t─▒: {
"sku": "AE H66F",
"summaries": [
{
"marketplaceId": "A33AVAJ2PDY3EV",
"asin": "B09JKYXFSJ",
"productType": "ELECTRONIC_COMPONENT_FAN",
"conditionType": "new_new",
"status": [
"BUYABLE",
"DISCOVERABLE"
],
"itemName": "Aerocool H66F fan kontrol├╝",
"createdDate": "2024-12-26T09:52:53.053Z",
"lastUpdatedDate": "2024-12-26T09:52:53.053Z",
"mainImage": {
"link": "https://m.media-amazon.com/images/I/31+Y302QIAL.jpg",
"height": 500,
"width": 500
}
}
]
}
[DEBUG] getListingsItem => productType: ELECTRONIC_COMPONENT_FAN
[DEBUG] patchListingsItem REPLACE => {
"productType": "ELECTRONIC_COMPONENT_FAN",
"patches": [
{
"op": "replace",
"path": "/attributes/purchasable_offer",
"value": [
{
"marketplace_id": "A33AVAJ2PDY3EV",
"currency": "TRY",
"purchasable_offer": [
{
"our_price": [
{
"schedule": [
{
"value_with_tax": "668.00"
}
]
}
]
}
]
}
]
},
{
"op": "replace",
"operation_type": "PARTIAL_UPDATE",
"path": "/attributes/fulfillment_availability",
"value": [
{
"fulfillment_channel_code": "DEFAULT",
"quantity": "36",
"marketplace_id": "A33AVAJ2PDY3EV"
}
]
}
]
}
[DEBUG] REPLACE Yan─▒t => {
"sku": "AE H66F",
"status": "ACCEPTED",
"submissionId": "79bdf335dfa54035bac8e9b8f01c62e3",
"issues": []
}
[DEBUG] Fiyat g├╝ncelleme iste─şi g├Ânderildi. Submission ID: 79bdf335dfa54035bac8e9b8f01c62e3
[DEBUG] API Yan─▒t─▒: {
"sku": "AE H66F",
"status": "ACCEPTED",
"submissionId": "79bdf335dfa54035bac8e9b8f01c62e3",
"issues": []
}`
Ich arbeite an einem Electron-Vue-Projekt und verwende die Amazon SP-API, um sowohl den Lagerbestand als auch den Preis für Produkte zu aktualisieren. Ich sende die Anfrage mit der Operation op: 'replace' an die SP-API. Während der Lagerbestand erfolgreich aktualisiert wird, wird der Preis nicht aktualisiert.
Die zurückgegebene Antwort zeigt an, dass alles in Ordnung ist, aber die Preisdaten werden nicht aktualisiert, wenn ich in Seller Central nachschaue. Wenn jemand die Lösung kennt, helfen Sie bitte.

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post