POST api/commerce/orders
Request Information
URI Parameters
None.
Body Parameters
CommerceCreateOrderDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| BuyerMemberID | globally unique identifier |
None. |
|
| ProductID | globally unique identifier |
None. |
|
| CheckoutIdempotencyKey | string |
None. |
|
| DigitalContentWithdrawalConsent | boolean |
None. |
|
| DigitalContentConsentVersion | string |
None. |
|
| Invoice | CommerceInvoiceCheckoutDTO |
None. |
Request Formats
application/json, text/json
Sample:
{
"BuyerMemberID": "a1332d98-687f-404d-b40e-9ee74eb83219",
"ProductID": "b271940f-75bc-4e34-8df4-a65dbe7925c2",
"CheckoutIdempotencyKey": "sample string 3",
"DigitalContentWithdrawalConsent": true,
"DigitalContentConsentVersion": "sample string 5",
"Invoice": {
"InvoiceType": "sample string 1",
"CarrierType": "sample string 2",
"CustomerEmail": "sample string 3",
"CustomerPhone": "sample string 4",
"CustomerIdentifier": "sample string 5",
"CustomerName": "sample string 6",
"CarrierNumber": "sample string 7",
"LoveCode": "sample string 8"
}
}
application/xml, text/xml
Sample:
<CommerceCreateOrderDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AIProject.API.Models.DTO">
<BuyerMemberID>a1332d98-687f-404d-b40e-9ee74eb83219</BuyerMemberID>
<CheckoutIdempotencyKey>sample string 3</CheckoutIdempotencyKey>
<DigitalContentConsentVersion>sample string 5</DigitalContentConsentVersion>
<DigitalContentWithdrawalConsent>true</DigitalContentWithdrawalConsent>
<Invoice>
<CarrierNumber>sample string 7</CarrierNumber>
<CarrierType>sample string 2</CarrierType>
<CustomerEmail>sample string 3</CustomerEmail>
<CustomerIdentifier>sample string 5</CustomerIdentifier>
<CustomerName>sample string 6</CustomerName>
<CustomerPhone>sample string 4</CustomerPhone>
<InvoiceType>sample string 1</InvoiceType>
<LoveCode>sample string 8</LoveCode>
</Invoice>
<ProductID>b271940f-75bc-4e34-8df4-a65dbe7925c2</ProductID>
</CommerceCreateOrderDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.