Get a stable order-first submission outcome
curl --request GET \
--url https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId} \
--header 'X-Cart-Token: <api-key>'import requests
url = "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}"
headers = {"X-Cart-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Cart-Token': '<api-key>'}};
fetch('https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Cart-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Cart-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}")
.header("X-Cart-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Cart-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attemptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collectionMode": "ONLINE",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"settlementAdapter": "STRIPE",
"status": "CUSTOMER_ACTION_REQUIRED",
"contact": {
"customerName": "<string>",
"emailAddress": "jsmith@example.com",
"phoneNumber": "<string>"
},
"clientSecret": "<string>",
"connectedAccountId": "<string>",
"mode": "test",
"nextAction": "COLLECT_PAYMENT_METHOD",
"catering": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Checkout
Get a stable order-first submission outcome
GET
/
locations
/
{locationId}
/
carts
/
{cartId}
/
submissions
/
{attemptId}
Get a stable order-first submission outcome
curl --request GET \
--url https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId} \
--header 'X-Cart-Token: <api-key>'import requests
url = "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}"
headers = {"X-Cart-Token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Cart-Token': '<api-key>'}};
fetch('https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Cart-Token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Cart-Token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}")
.header("X-Cart-Token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.craveup.com/api/v1/storefront/locations/{locationId}/carts/{cartId}/submissions/{attemptId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Cart-Token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"attemptId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"collectionMode": "ONLINE",
"orderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"settlementAdapter": "STRIPE",
"status": "CUSTOMER_ACTION_REQUIRED",
"contact": {
"customerName": "<string>",
"emailAddress": "jsmith@example.com",
"phoneNumber": "<string>"
},
"clientSecret": "<string>",
"connectedAccountId": "<string>",
"mode": "test",
"nextAction": "COLLECT_PAYMENT_METHOD",
"catering": null
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}{
"code": "VALIDATION_ERROR",
"message": "<string>",
"requestId": "<string>",
"details": {}
}Authorizations
StorefrontCartCapabilityStorefrontCustomerAuth
Purpose-limited capability returned for a guest cart.
Path Parameters
Required string length:
1 - 128Required string length:
1 - 128Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Response
Current stable order-first submission outcome.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Available options:
ONLINE, PAY_AT_STORE Pattern:
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Available options:
STRIPE, SQUARE, CLOVER, TOAST Available options:
CUSTOMER_ACTION_REQUIRED Show child attributes
Show child attributes
Minimum string length:
1Required string length:
1 - 255Available options:
test, live Available options:
COLLECT_PAYMENT_METHOD, CONFIRM_PAYMENT, HANDLE_NEXT_ACTION, WAIT, NONE Show child attributes
Show child attributes
