Complete the Cart and Checkout

This is where the money happens. You get charged for nothing in your cart until you run this command. Granted, you also won't get use out of anything in your cart until then either. But still..

Post/ Get Information

URL:

https://apiv1.teleapi.net/cart/checkout

Shell/CURL

curl -v -X GET "https://apiv1.teleapi.net/cart/checkout?token=XXXX"

Using PHP+CURL

<?php

$baseurl = "https://apiv1.teleapi.net/cart/checkout?token=XXXX";
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$retval = curl_exec($ch);
curl_close($ch);

$object = json_decode($retval);
print_r($object);

PHP - file_get_contents

<?php
$url = "https://apiv1.teleapi.net/cart/checkout?token=XXXX";
$x = file_get_contents($url);
$object = json_decode($x);
print_r($object);

Successful State Listing

{
    "code": 200,
    "status": "success"
}

Example Error

{
    "code": 400,
    "status": "error",
    "data": "Missing: order invalid"
}

results matching ""

    No results matching ""