# API: Get order page templates
# getOrderPageTemplates
Get available product types with their order page templates. Each entry in templates contains an otypes array listing available template files for that product type. Use templates[].id as ptype and templates[].otypes[].file as otype when calling addOrderPage or editOrderPage.
# Request
GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getOrderPageTemplates
# PHP Samples
# Response
{
"success": true,
"templates": [
{
"id": "1",
"type": "Shared",
"lptype": "shared",
"otypes": [
{
"file": "templates\/orderpages\/cart_2019wizard.tpl",
"name": "2019 Wizard"
},
{
"file": "templates\/orderpages\/cart.tpl",
"name": "Default product listing"
},
{
"file": "templates\/orderpages\/onestep_simple.tpl",
"name": "Simple Full-Page Checkout, One-step"
}
]
},
{
"id": "3",
"type": "Dedicated",
"lptype": "dedicated",
"otypes": [
{
"file": "templates\/orderpages\/cart_2019wizard.tpl",
"name": "2019 Wizard"
},
{
"file": "templates\/orderpages\/cart_dedicated.tpl",
"name": "Listing + more info"
},
{
"file": "templates\/orderpages\/onestep_hardware.tpl",
"name": "VPS Hardware, One-step"
}
]
},
{
"id": "9",
"type": "DomainsType",
"lptype": "domainstype",
"otypes": [
{
"file": "templates\/orderpages\/domain.tpl",
"name": "Default domain listing"
}
]
}
],
"call": "getOrderPageTemplates",
"server_time": 1706614584
}