curl --request POST \
--url https://apiv2.example.com/orders/{orderId}/submit \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"paymentSessionId": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"paymentProfileSessionId": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"signingSessionId": "c3d4e5f6-a7b8-9012-3456-789abcdef012",
"metadata": {}
}
'import requests
url = "https://apiv2.example.com/orders/{orderId}/submit"
payload = {
"paymentSessionId": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"paymentProfileSessionId": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"signingSessionId": "c3d4e5f6-a7b8-9012-3456-789abcdef012",
"metadata": {}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
paymentSessionId: 'a1b2c3d4-e5f6-7890-1234-56789abcdef0',
paymentProfileSessionId: 'b2c3d4e5-f6a7-8901-2345-6789abcdef01',
signingSessionId: 'c3d4e5f6-a7b8-9012-3456-789abcdef012',
metadata: {}
})
};
fetch('https://apiv2.example.com/orders/{orderId}/submit', 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://apiv2.example.com/orders/{orderId}/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentSessionId' => 'a1b2c3d4-e5f6-7890-1234-56789abcdef0',
'paymentProfileSessionId' => 'b2c3d4e5-f6a7-8901-2345-6789abcdef01',
'signingSessionId' => 'c3d4e5f6-a7b8-9012-3456-789abcdef012',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiv2.example.com/orders/{orderId}/submit"
payload := strings.NewReader("{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiv2.example.com/orders/{orderId}/submit")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.example.com/orders/{orderId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"orderId": "order-123",
"state": "PENDING",
"lineItems": [
{
"type": "SUBSCRIPTION",
"lineItemId": "line-item-1",
"productOfferingId": "mobile-plan-basic",
"msisdn": "+15551234567",
"leaseToken": "<string>",
"tempNumber": true,
"portingRequested": true,
"porting": {
"details": {
"firstName": "<string>",
"lastName": "<string>",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
},
"accountNumber": "<string>",
"passcode": "<string>"
}
},
"extensions": {},
"display": "<string>",
"subscriber": {
"name": "John Doe",
"email": "john.doe@example.com",
"msisdn": "+15551234567",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
}
},
"sim": {
"esim": true,
"imei": "356938035643809",
"iccid": "8931440400000000000"
},
"scheduleActivationAt": "2024-02-01",
"metadata": {},
"status": "PENDING"
}
],
"validation": {
"isValid": false,
"missingFields": [
"customer",
"billing.address"
],
"errors": [
{
"message": "<string>",
"property": "<string>"
}
],
"lineItemValidation": [
{
"lineItemId": "line-item-1",
"isValid": false,
"missingFields": [
"subscriber.name",
"sim.iccid"
],
"errors": [
{
"message": "<string>",
"property": "<string>"
}
]
}
]
},
"requirements": {
"requiresPayment": "NOT_REQUIRED",
"requiresPaymentProfile": "NOT_REQUIRED",
"requiresSigning": "NOT_REQUIRED"
},
"expiresAt": "2024-01-22T10:30:00Z",
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"user": {
"userId": "c47ac10b-58cc-4372-a567-0e02b2c3d479",
"newUser": true,
"name": "John Doe"
},
"customer": {
"customerType": "CONSUMER",
"name": "John Doe",
"newCustomer": true,
"customerId": "b47ac10b-58cc-4372-a567-0e02b2c3d479"
},
"billing": {
"name": "John Doe",
"email": "billing@example.com",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
}
},
"shipping": {
"name": "John Doe",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
},
"msisdn": "+15551234567",
"instructions": "Leave at front door"
},
"promoCode": "STUDENT2024",
"paymentSessionId": "d2e3f4a5-b6c7-8901-2345-012345678901",
"paymentProfileSessionId": "69321a62-f1fe-461f-8761-a19ae6587bb2",
"signingSessionId": "8f3b1c2d-4e5f-6789-abcd-1234567890ef",
"consents": {
"termsOfService": "true",
"marketing": "true"
},
"pricing": {
"total": 137.39,
"currency": "USD",
"calculatedAt": "2024-01-15T10:30:00Z",
"subtotal": 125.99,
"taxAmount": 10.08,
"fees": 1.32,
"taxIncluded": true,
"recurringCosts": {
"subtotal": 29.99,
"total": 32.39,
"taxAmount": 2.4,
"taxIncluded": true,
"billingCycle": {
"period": "MONTHLY",
"interval": 1
}
},
"initialInvoice": {
"subtotal": 14.5,
"total": 15.66,
"taxAmount": 123,
"taxIncluded": true,
"period": {
"start": "2024-01-15",
"end": "2024-01-31"
}
}
},
"externalPayment": {
"reference": "ext-payment-ref-123",
"receiptDescription": "Payment via external billing system",
"receiptUrl": "https://external.example.com/receipts/123",
"receivedAt": "2024-01-15T14:30:00Z"
},
"submittedAt": "2024-01-15T14:30:00Z",
"completedAt": "2024-01-15T15:00:00Z",
"createdEntities": {
"subscriptions": [
{
"subscriptionId": "<string>",
"status": "PENDING",
"type": "<string>",
"display": "<string>",
"msisdn": "<string>",
"customerId": "<string>",
"productOfferingId": "<string>",
"subscriberId": "<string>",
"activatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByLineItem": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"cancelledAt": "2023-11-07T05:31:56Z"
}
],
"licenses": [
{
"licenseId": "<string>",
"status": "PENDING",
"type": "<string>",
"customerId": "<string>",
"productOfferingId": "<string>",
"activatedAt": "2023-11-07T05:31:56Z",
"createdByLineItem": "g47ac10b-58cc-4372-a567-0e02b2c3d479",
"assignedTo": {
"type": "SUBSCRIPTION",
"subscriptionId": "<string>"
},
"cancelledAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-12-25"
}
],
"addons": [
{
"status": "PENDING",
"createdByLineItem": "h47ac10b-58cc-4372-a567-0e02b2c3d479",
"productOfferingId": "<string>",
"referenceId": "telna-package-12345",
"productOfferingGroupId": "<string>",
"licenseId": "<string>",
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
],
"modifications": [
{
"type": "SUBSCRIPTION_CHANGE",
"targetId": "e8174435-6378-4be5-a9f5-8b4aaadae5d4",
"createdByLineItem": "i47ac10b-58cc-4372-a567-0e02b2c3d479",
"newProductOfferingId": "po_mobile_premium_plus",
"appliedAt": "2023-11-07T05:31:56Z"
}
]
},
"metadata": {}
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}Submit order
Submit an order for fulfillment. Requires payment, signing, or card capture, depending on the setup.
curl --request POST \
--url https://apiv2.example.com/orders/{orderId}/submit \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"paymentSessionId": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"paymentProfileSessionId": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"signingSessionId": "c3d4e5f6-a7b8-9012-3456-789abcdef012",
"metadata": {}
}
'import requests
url = "https://apiv2.example.com/orders/{orderId}/submit"
payload = {
"paymentSessionId": "a1b2c3d4-e5f6-7890-1234-56789abcdef0",
"paymentProfileSessionId": "b2c3d4e5-f6a7-8901-2345-6789abcdef01",
"signingSessionId": "c3d4e5f6-a7b8-9012-3456-789abcdef012",
"metadata": {}
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
paymentSessionId: 'a1b2c3d4-e5f6-7890-1234-56789abcdef0',
paymentProfileSessionId: 'b2c3d4e5-f6a7-8901-2345-6789abcdef01',
signingSessionId: 'c3d4e5f6-a7b8-9012-3456-789abcdef012',
metadata: {}
})
};
fetch('https://apiv2.example.com/orders/{orderId}/submit', 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://apiv2.example.com/orders/{orderId}/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'paymentSessionId' => 'a1b2c3d4-e5f6-7890-1234-56789abcdef0',
'paymentProfileSessionId' => 'b2c3d4e5-f6a7-8901-2345-6789abcdef01',
'signingSessionId' => 'c3d4e5f6-a7b8-9012-3456-789abcdef012',
'metadata' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://apiv2.example.com/orders/{orderId}/submit"
payload := strings.NewReader("{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://apiv2.example.com/orders/{orderId}/submit")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.example.com/orders/{orderId}/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"paymentSessionId\": \"a1b2c3d4-e5f6-7890-1234-56789abcdef0\",\n \"paymentProfileSessionId\": \"b2c3d4e5-f6a7-8901-2345-6789abcdef01\",\n \"signingSessionId\": \"c3d4e5f6-a7b8-9012-3456-789abcdef012\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"orderId": "order-123",
"state": "PENDING",
"lineItems": [
{
"type": "SUBSCRIPTION",
"lineItemId": "line-item-1",
"productOfferingId": "mobile-plan-basic",
"msisdn": "+15551234567",
"leaseToken": "<string>",
"tempNumber": true,
"portingRequested": true,
"porting": {
"details": {
"firstName": "<string>",
"lastName": "<string>",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
},
"accountNumber": "<string>",
"passcode": "<string>"
}
},
"extensions": {},
"display": "<string>",
"subscriber": {
"name": "John Doe",
"email": "john.doe@example.com",
"msisdn": "+15551234567",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
}
},
"sim": {
"esim": true,
"imei": "356938035643809",
"iccid": "8931440400000000000"
},
"scheduleActivationAt": "2024-02-01",
"metadata": {},
"status": "PENDING"
}
],
"validation": {
"isValid": false,
"missingFields": [
"customer",
"billing.address"
],
"errors": [
{
"message": "<string>",
"property": "<string>"
}
],
"lineItemValidation": [
{
"lineItemId": "line-item-1",
"isValid": false,
"missingFields": [
"subscriber.name",
"sim.iccid"
],
"errors": [
{
"message": "<string>",
"property": "<string>"
}
]
}
]
},
"requirements": {
"requiresPayment": "NOT_REQUIRED",
"requiresPaymentProfile": "NOT_REQUIRED",
"requiresSigning": "NOT_REQUIRED"
},
"expiresAt": "2024-01-22T10:30:00Z",
"createdAt": "2024-01-15T10:00:00Z",
"updatedAt": "2024-01-15T10:30:00Z",
"user": {
"userId": "c47ac10b-58cc-4372-a567-0e02b2c3d479",
"newUser": true,
"name": "John Doe"
},
"customer": {
"customerType": "CONSUMER",
"name": "John Doe",
"newCustomer": true,
"customerId": "b47ac10b-58cc-4372-a567-0e02b2c3d479"
},
"billing": {
"name": "John Doe",
"email": "billing@example.com",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
}
},
"shipping": {
"name": "John Doe",
"address": {
"street1": "500 S Main St",
"city": "Natick",
"zip": "01701",
"country": "US",
"street2": "Apt 1",
"state": "CA",
"region": "<string>",
"attention": "<string>"
},
"msisdn": "+15551234567",
"instructions": "Leave at front door"
},
"promoCode": "STUDENT2024",
"paymentSessionId": "d2e3f4a5-b6c7-8901-2345-012345678901",
"paymentProfileSessionId": "69321a62-f1fe-461f-8761-a19ae6587bb2",
"signingSessionId": "8f3b1c2d-4e5f-6789-abcd-1234567890ef",
"consents": {
"termsOfService": "true",
"marketing": "true"
},
"pricing": {
"total": 137.39,
"currency": "USD",
"calculatedAt": "2024-01-15T10:30:00Z",
"subtotal": 125.99,
"taxAmount": 10.08,
"fees": 1.32,
"taxIncluded": true,
"recurringCosts": {
"subtotal": 29.99,
"total": 32.39,
"taxAmount": 2.4,
"taxIncluded": true,
"billingCycle": {
"period": "MONTHLY",
"interval": 1
}
},
"initialInvoice": {
"subtotal": 14.5,
"total": 15.66,
"taxAmount": 123,
"taxIncluded": true,
"period": {
"start": "2024-01-15",
"end": "2024-01-31"
}
}
},
"externalPayment": {
"reference": "ext-payment-ref-123",
"receiptDescription": "Payment via external billing system",
"receiptUrl": "https://external.example.com/receipts/123",
"receivedAt": "2024-01-15T14:30:00Z"
},
"submittedAt": "2024-01-15T14:30:00Z",
"completedAt": "2024-01-15T15:00:00Z",
"createdEntities": {
"subscriptions": [
{
"subscriptionId": "<string>",
"status": "PENDING",
"type": "<string>",
"display": "<string>",
"msisdn": "<string>",
"customerId": "<string>",
"productOfferingId": "<string>",
"subscriberId": "<string>",
"activatedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"createdByLineItem": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"cancelledAt": "2023-11-07T05:31:56Z"
}
],
"licenses": [
{
"licenseId": "<string>",
"status": "PENDING",
"type": "<string>",
"customerId": "<string>",
"productOfferingId": "<string>",
"activatedAt": "2023-11-07T05:31:56Z",
"createdByLineItem": "g47ac10b-58cc-4372-a567-0e02b2c3d479",
"assignedTo": {
"type": "SUBSCRIPTION",
"subscriptionId": "<string>"
},
"cancelledAt": "2023-11-07T05:31:56Z",
"pausedAt": "2023-12-25"
}
],
"addons": [
{
"status": "PENDING",
"createdByLineItem": "h47ac10b-58cc-4372-a567-0e02b2c3d479",
"productOfferingId": "<string>",
"referenceId": "telna-package-12345",
"productOfferingGroupId": "<string>",
"licenseId": "<string>",
"addedAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"cancelledAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
],
"modifications": [
{
"type": "SUBSCRIPTION_CHANGE",
"targetId": "e8174435-6378-4be5-a9f5-8b4aaadae5d4",
"createdByLineItem": "i47ac10b-58cc-4372-a567-0e02b2c3d479",
"newProductOfferingId": "po_mobile_premium_plus",
"appliedAt": "2023-11-07T05:31:56Z"
}
]
},
"metadata": {}
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}{
"message": "<string>",
"code": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"property": "<string>",
"suggestion": "<string>"
}
],
"hint": "<string>"
}Authorizations
An API key that grants access to the Connect API. You can create and manage API keys in the portal.
Headers
A unique key to ensure idempotency of requests. If a request with the same key has already been processed, the same result will be returned. The key must be unique for each distinct operation. Keys are expired after 24 hours, but we recommend using a new key for each request.
Modified requests with the same idempotency keys are rejected with a 409 Conflict status code.
256Path Parameters
The unique identifier of the order
Body
Request to submit an order for fulfillment.
Depending on the order's requirements, payment intent, saved payment profile, or signing reference may be required.
In a fully managed flow, the order may be auto-submitted on successfully fulfilling all requirements (e.g. successful payment or signing).
Reference to completed payment session for orders requiring payment collection.
"a1b2c3d4-e5f6-7890-1234-56789abcdef0"
Reference to completed payment profile session for zero-total orders requiring payment method setup.
"b2c3d4e5-f6a7-8901-2345-6789abcdef01"
Reference to completed signing session.
"c3d4e5f6-a7b8-9012-3456-789abcdef012"
Details of an external payment made outside the system. When provided, the order is considered paid and will bypass internal payment requirements.
Cannot be used together with paymentSessionId.
Show child attributes
Show child attributes
A set of key-value pairs that can be attached to an object for storing additional information in a semi-structured format.
Show child attributes
Show child attributes
Response
Order submitted successfully
A shopping cart for telecommunications services and products. Add line items to configure services, get pricing, and submit for fulfillment. Orders track progress from creation through completion.
Unique identifier for the order.
"order-123"
The status of an order in its lifecycle.
- PENDING: Order is in cart state, can be modified
- PENDING_PAYMENT: Order is locked and awaiting payment completion
- SUBMITTED: Order has been submitted for processing
- PENDING_APPROVAL: Order is pending approval
- PROCESSING: Order is being fulfilled
- COMPLETED: Order has been successfully fulfilled
- CANCELLED: Order was cancelled before completion
- EXPIRED: Order expired due to inactivity
- FAILED: Order fulfillment failed
PENDING, PENDING_PAYMENT, SUBMITTED, PENDING_APPROVAL, PROCESSING, COMPLETED, CANCELLED, EXPIRED, FAILED Line items in the order.
A line item in an order representing a billable action or service.
- Subscription
- License
- Add-on
- External Product
- External Item
- Subscription Change
- License Change
- Add-on Change
Show child attributes
Show child attributes
Validation status of the order and its line items.
Show child attributes
Show child attributes
Requirements to submit the order. All listed requirements must be met before the order can be submitted.
What is required depends on platform configuration and the contents of the order.
For example, a prepaid order with only free items would not require payment, it could however require card capture. Postpaid orders typically either require card capture or signing.
Show child attributes
Show child attributes
When the order expires if not submitted (automatically refreshed on each order update to maintain active session).
"2024-01-22T10:30:00Z"
When the order was created.
"2024-01-15T10:00:00Z"
When the order was last updated.
"2024-01-15T10:30:00Z"
The user associated with this order. Includes minimal details about the user and creation details if the user was created during order fulfillment.
Show child attributes
Show child attributes
The customer associated with this order. Includes minimal details about the customer and creation details if the customer was created during order fulfillment.
Show child attributes
Show child attributes
Billing information for an order.
For existing customers, we suggest you pre-fill this with the customer's billing information, however it is possible to override this at the order level.
Show child attributes
Show child attributes
Shipping information for order fulfillment. Only required if the order contains shippable items.
Show child attributes
Show child attributes
Promotional code applied to this order, if any.
"STUDENT2024"
The payment session that collected payment for this order, set when the order was submitted with one.
"d2e3f4a5-b6c7-8901-2345-012345678901"
The payment profile session used to set up a payment method for this order, set when the order was submitted with one.
"69321a62-f1fe-461f-8761-a19ae6587bb2"
The signing session that captured the customer's signature for this order, set when the order was submitted with one.
"8f3b1c2d-4e5f-6789-abcd-1234567890ef"
Customer consents and acknowledgments.
Show child attributes
Show child attributes
{
"termsOfService": "true",
"marketing": "true"
}
The price of an order. In regions with complex tax rules (e.g., the US), you need to call the price calculation endpoint to get accurate tax amounts before submitting the order. In other regions, tax is dependent on customer type but typically included.
Show child attributes
Show child attributes
External payment details if the order was paid outside the system.
Show child attributes
Show child attributes
When the order was submitted for fulfillment.
"2024-01-15T14:30:00Z"
When the order was completed.
"2024-01-15T15:00:00Z"
Entities created as part of order fulfillment.
Show child attributes
Show child attributes
A set of key-value pairs that can be attached to an object for storing additional information in a semi-structured format.
Show child attributes
Show child attributes