Initialise the cart with shippingAddress, basket items, descriptions and amounts for example and these will be used in the checkout workflow.
successful operation
{- "checkoutId": "a21b4d66-7585-4979-80ec-60ea35b35821",
- "expiryTimeMinutes": 0,
- "transferId": "e240f72a-b0bc-4f57-ab86-5b78f1d8ea9b",
- "merchantCartId": "string",
- "transaction": {
- "total": {
- "amount": 0,
- "currency": "GBP",
- "description": "string"
}, - "accountId": "string",
- "reference": "string"
}, - "basket": {
- "subTotal": 0,
- "items": [
- {
- "lineId": "string",
- "quantity": 0,
- "productId": "string",
- "varientId": "string",
- "sku": "string",
- "productName": "string",
- "total": 0,
- "unitPrice": 0,
- "taxRate": 0,
- "taxTotal": 0
}
]
}, - "shippingDetails": {
- "currency": "GBP",
- "totalPrice": "299",
- "taxRate": 0,
- "description": "Roymail 48 hour with tracking",
- "serviceCode": "RM48",
- "serviceName": "Royalmail 48 hours",
- "maxDeliveryDate": "2022-04-01T09:12:34+0100",
- "minDeliveryDate": "2022-04-02T09:12:34+0100"
}, - "shippingAddress": {
- "diallingCode": "+44",
- "addressSignature": "string",
- "phoneNumberWithoutDiallingCode": "7911123456",
- "phoneNumber": "+447911123456",
- "email": "a_consumer@gmail.com",
- "firstName": "Jane",
- "lastName": "Doe",
- "address": {
- "addressLine1": "221 B Baker Street",
- "addressLine2": "",
- "city": "London",
- "countryCode": "GB",
- "postcode": "NW1 6XE",
- "isVerified": "1"
}
}, - "testMode": false,
- "returnUrl": "string"
}
{- "success": true,
- "message": "string",
- "data": {
- "cartId": "string",
- "dateCreated": "string"
}
}