/services/webshop/v1/shoppingcart/add/payment-method
Public
Returns the full updated cart (same response as Get Shopping Cart).
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
shoppingcart_session |
string | Yes | abc123def456ghi789 |
|
payment_method |
string | Yes | ideal |
|
website_id |
string | Yes | 1 |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
| Field | Type | Description |
|---|---|---|
payment |
object | |
payment.selected |
string | |
payment.methods |
string | |
shipment |
object | |
shipment.shipping_methods |
string | |
shipment.selected |
object | |
quote |
object | |
quote.show_price_tax_included |
string | |
quote.session |
string | |
quote.tax_amounts |
string | |
quote.total_price |
string | |
quote.total_price_tax |
string | |
quote.total_price_with_tax |
string | |
quote.products |
object[] | |
shoppingcart |
object | |
shoppingcart.show_price_tax_included |
string | |
shoppingcart.session |
string | |
shoppingcart.tax_amounts |
string | |
shoppingcart.total_price |
string | |
shoppingcart.total_price_tax |
string | |
shoppingcart.total_price_with_tax |
string | |
shoppingcart.products |
object[] | |
shoppingcart.total_quantity |
number | |
coupon |
object | |
coupon.code |
string | |
coupon.label |
string | |
coupon.value |
string | |
coupon.value_type |
string | |
coupon.discount_amount |
number | Amounts |
coupon.discount_amount_incl_tax |
number | Amounts |
coupon.applied_to_shipping |
boolean | |
agreement |
object | |
agreement.url |
string | |
countries |
object | |
countries.NL |
string | |
countries.BE |
string | |
countries.DE |
string | |
countries.FR |
string | |
countries.IT |
string | |
countries.ES |
string | |
countries.AT |
string | |
countries.LU |
string | |
countries.IE |
string | |
countries.PT |
string | |
countries.PL |
string | |
countries.CZ |
string | |
countries.SK |
string | |
countries.SI |
string | |
countries.HU |
string | |
countries.RO |
string | |
countries.BG |
string | |
countries.HR |
string | |
countries.GR |
string | |
countries.CY |
string | |
countries.EE |
string | |
countries.LV |
string | |
countries.LT |
string | |
countries.FI |
string | |
countries.SE |
string | |
countries.DK |
string | |
countries.MT |
string | |
users |
string | |
vies |
object | |
vies.status |
string valid, unavailable, invalid, unchecked |
|
vies.reverse_charge_applied |
boolean |
| Field | Type | Description |
|---|---|---|
message |
string | Errors overview. |
errors |
object | A detailed description of each field that failed validation. |
| Header | Type | Description | Example |
|---|---|---|---|
X-RateLimit-Limit |
integer | Maximum number of requests allowed per minute | 60 |
X-RateLimit-Remaining |
integer | Number of requests remaining in the current window | 57 |
Retry-After |
integer | Seconds until the rate limit resets | 60 |
| Field | Type | Description |
|---|---|---|
error |
boolean | |
message |
string |
curl -X POST "https://api.wemasy.nl/api/services/webshop/v1/shoppingcart/add/payment-method" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"shoppingcart_session": "abc123def456ghi789",
"payment_method": "ideal",
"website_id": "1"
}'
fetch('https://api.wemasy.nl/api/services/webshop/v1/shoppingcart/add/payment-method', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN',
'Accept': 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"shoppingcart_session": "abc123def456ghi789",
"payment_method": "ideal",
"website_id": "1"
})})
.then(r => r.json())
.then(data => console.log(data));
$response = Http::withToken('YOUR_API_TOKEN')
->accept('application/json')
->post('https://api.wemasy.nl/api/services/webshop/v1/shoppingcart/add/payment-method', {
"shoppingcart_session": "abc123def456ghi789",
"payment_method": "ideal",
"website_id": "1"
});
$data = $response->json();
import requests
headers = {
"Authorization": "Bearer YOUR_API_TOKEN",
"Accept": "application/json"
}
data = {
"shoppingcart_session": "abc123def456ghi789",
"payment_method": "ideal",
"website_id": "1"
}
r = requests.post("https://api.wemasy.nl/api/services/webshop/v1/shoppingcart/add/payment-method", headers=headers, json=data)
print(r.json())
{
"payment": {
"selected": "string",
"methods": "string"
},
"shipment": {
"shipping_methods": "string",
"selected": {
"selected": "string",
"title": "string",
"price": "string"
}
},
"quote": {
"show_price_tax_included": "string",
"session": "string",
"tax_amounts": "string",
"total_price": "string",
"total_price_tax": "string",
"total_price_with_tax": "string",
"products": []
},
"shoppingcart": {
"show_price_tax_included": "string",
"session": "string",
"tax_amounts": "string",
"total_price": "string",
"total_price_tax": "string",
"total_price_with_tax": "string",
"products": [],
"total_quantity": 0
},
"coupon": {
"code": "string",
"label": "string",
"value": "string",
"value_type": "string",
"discount_amount": 0,
"discount_amount_incl_tax": 0,
"applied_to_shipping": true
},
"agreement": {
"url": "string"
},
"countries": {
"NL": "string",
"BE": "string",
"DE": "string",
"FR": "string",
"IT": "string",
"ES": "string",
"AT": "string",
"LU": "string",
"IE": "string",
"PT": "string",
"PL": "string",
"CZ": "string",
"SK": "string",
"SI": "string",
"HU": "string",
"RO": "string",
"BG": "string",
"HR": "string",
"GR": "string",
"CY": "string",
"EE": "string",
"LV": "string",
"LT": "string",
"FI": "string",
"SE": "string",
"DK": "string",
"MT": "string"
},
"users": "string",
"vies": {
"status": "string",
"reverse_charge_applied": true
}
}