Create a payment order for guest customer
application/json
POST
/V1/guest-carts/{cartId}/payment-order
cURL (application/json)
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId}/payment-order' \
--header "Content-Type: application/json" \
--data '{"methodCode":"string","paymentSource":"string","location":"string","vaultIntent":true}'
curl \
--request POST 'https://magento2.winkelstraat.mac/rest/all/V1/guest-carts/{cartId}/payment-order' \
--header "Content-Type: application/xml"
Request examples
{
"methodCode": "string",
"paymentSource": "string",
"location": "string",
"vaultIntent": true
}
Request examples
<?xml version="1.0" encoding="UTF-8"?>
<root>
<methodCode>string</methodCode>
<paymentSource>string</paymentSource>
<location>string</location>
<vaultIntent type="boolean">true</vaultIntent>
</root>
Response examples (200)
{
"id": "string",
"mp_order_id": "string",
"status": "string",
"amount": 42.0,
"currency_code": "string"
}
Response examples (200)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<id>string</id>
<mp-order-id>string</mp-order-id>
<status>string</status>
<amount type="float">42.0</amount>
<currency-code>string</currency-code>
</root>
Response examples (500)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (500)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>
Response examples (default)
{
"message": "string",
"errors": [
{
"message": "string",
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
]
}
],
"code": 42,
"parameters": [
{
"resources": "string",
"fieldName": "string",
"fieldValue": "string"
}
],
"trace": "string"
}
Response examples (default)
<?xml version="1.0" encoding="UTF-8"?>
<root>
<message>string</message>
<errors type="array">
<error>
<message>string</message>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
</error>
</errors>
<code type="integer">42</code>
<parameters type="array">
<parameter>
<resources>string</resources>
<fieldName>string</fieldName>
<fieldValue>string</fieldValue>
</parameter>
</parameters>
<trace>string</trace>
</root>