1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

何をやろうとしている?

MWSでマケプレで売ってる商品をFBAにぶっこんだり、その逆をやったりする。

どのオペレーションを使う?

オペレーションSubmitFeed
FeedType:在庫フィード(POST_INVENTORY_AVAILABILITY_DATA

マケプレ→FBA

changeAFNFromMFM.xml
<?xml version="1.0" encoding="utf-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>{$token}</MerchantIdentifier>
    </Header>
    <MessageType>Inventory</MessageType>
    <Message>
        <MessageID>{$i}</MessageID>
        <OperationType>Update</OperationType>
        <Inventory>
            <SKU>{$sku}</SKU>
            <FulfillmentCenterID>AMAZON_NA</FulfillmentCenterID>
            <Lookup>FulfillmentNetwork</Lookup>
            <SwitchFulfillmentTo>AFN</SwitchFulfillmentTo>
        </Inventory>
    </Message>
</AmazonEnvelope>

必須項目(Inventory要素の中の話)

  • SKU

  • SwitchFulfillmentTo

  • FulfillmentCenterID

  • Lookup

FBA→マケプレ

changeMFNFromAFM.xml
<?xml version="1.0" encoding="utf-8"?>
<AmazonEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="amzn-envelope.xsd">
    <Header>
        <DocumentVersion>1.01</DocumentVersion>
        <MerchantIdentifier>{$token}</MerchantIdentifier>
    </Header>
    <MessageType>Inventory</MessageType>
    <Message>
        <MessageID>{$i}</MessageID>
        <OperationType>Update</OperationType>
        <Inventory>
            <SKU>{$sku}</SKU>
            <Quantity>{$qty}</Quantity>
            <SwitchFulfillmentTo>MFN</SwitchFulfillmentTo>
        </Inventory>
    </Message>
</AmazonEnvelope>

必須項目(Inventory要素の中の話)

  • SKU

  • SwitchFulfillmentTo

  • Quantity




切り替え先によって必須項目が変わってくるんだなあ

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?