Skip to content

Commit 0641345

Browse files
authored
Merge pull request #1818 from camilo300792/master
2 parents c30e877 + 2a7f5c9 commit 0641345

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

sp_api/api/messaging/messaging.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,3 +466,45 @@ def create_unexpected_problem(self, order_id, **kwargs) -> ApiResponse:
466466
"method": kwargs.pop("method"),
467467
},
468468
)
469+
470+
@sp_endpoint("/messaging/v1/orders/{}/messages/invoice", method="POST")
471+
def send_invoice(self, order_id, **kwargs) -> ApiResponse:
472+
"""
473+
send_invoice(self, order_id, **kwargs) -> ApiResponse
474+
475+
Sends a message providing the buyer an invoice
476+
477+
**Usage Plan:**
478+
479+
====================================== ==============
480+
Rate (requests per second) Burst
481+
====================================== ==============
482+
1 5
483+
====================================== ==============
484+
485+
For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.
486+
487+
Args:
488+
order_id:string | * REQUIRED An Amazon order identifier. This specifies the order for which a message is sent.
489+
body: {
490+
"attachments": [
491+
{
492+
"uploadDestinationId": "string",
493+
"fileName": "string"
494+
}
495+
]
496+
}
497+
498+
499+
Returns:
500+
ApiResponse:
501+
"""
502+
503+
return self._request(
504+
fill_query_params(kwargs.pop("path"), order_id),
505+
data=kwargs.pop("body"),
506+
params={
507+
"marketplaceIds": self.marketplace_id,
508+
"method": kwargs.pop("method"),
509+
},
510+
)

0 commit comments

Comments
 (0)