Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

_UPLOAD_VAT_INVOICE_ #129

@mbolder

Description

@mbolder

Hello, I am desperately trying to create a submit feed with the feed type "UPLOAD_VAT_INVOICE". The given example by Amazon is only in Java, and I cannot make a lot of sense of it. I understand that the feed should be something like that :

metadata:OrderId='xxx-xxxxxxx-xxxxxxxx';metadata:TotalAmount='0.00';metadata:TotalVATAmount='0.00';metadata:InvoiceNumber='RExxxxx'

But how/where can add a pdf file in order to upload it?

feed_api = mws.Feeds(access_key,secret_key,merchant_id,region='DE')
feed_options="metadata:OrderId='xxx-xxxxxxx-xxxxxxxx';metadata:TotalAmount='0.00';metadata:TotalVATAmount='0.00';metadata:InvoiceNumber='RExxxxx'"
feed_options= feed_options.encode('utf-8')
feed_rsp = feed_api.submit_feed(feed_type='_UPLOAD_VAT_INVOICE_',feed=feed_options)
feedid = feed_rsp.parsed
reqId	= feedid.FeedSubmissionInfo.FeedSubmissionId
reqStat	= feedid.FeedSubmissionInfo.FeedProcessingStatus
print("Feed Submit ID:", reqId, "Status:", reqStat)

Kind Regards
Markus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions