Templating
Checkout templates pre-define the field visibility and layout for the customer data collection form on the hosted payment page. Once created, apply a template to a checkout session by passing its id in the checkout_template_id field when calling POST /v2/checkout.
How It Works
Apply to a checkout
Pass the template id as checkout_template_id in the POST /v2/checkout request body. See Checkout Sessions.
API Reference
Create Template
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseSuccessful
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseIndicates whether the template is active or not.
Bad Request
Unauthorized
Forbidden
Internal Server Error
POST /oidc/checkout-service/v2/template/checkoutDetails HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 1075
{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
}
}{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
},
"id": "text",
"created_at": "2026-01-01",
"updated_at": "2026-01-01",
"status": "ACTIVE"
}List Templates
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
Filter templates using RSQL syntax. Combine expressions with ; (AND) or , (OR).
Filterable fields:
| Field | Type | Operators |
|---|---|---|
name | string | == != =in= =out= =regex= =contains= |
created_at | date | == != =in= =out= =gt= =ge= =lt= =le= |
updated_at | date | == != =in= =out= =gt= =ge= =lt= =le= |
entity_id | string | == != =in= =out= =regex= |
Examples:
name==MyTemplate;entity_id==a6b45428-0296-4394-8ddd-0b50b5b20aa9name==TemplateName
The ordering sequence of the selected templates If not selected then Descending order is the default order.
A filter query in RSQL format to retrieve templates based on page number. If not selected then a default pageNumber is 1.
A filter query in RSQL format to retrieve templates based on page size. If not selected then a default pageSize is 50
Successful
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseBad Request
Unauthorized
Forbidden
Internal Server Error
GET /oidc/checkout-service/v2/template/checkoutDetails/ HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Accept: */*
[
{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
}
}
]Get a templates by ID
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
The id parameter in the GET API uniquely identifies a checkout template, allowing you to retrieve detailed information about a specific template by providing its associated identifier.
Successful
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseIndicates whether the template is active or not.
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
GET /oidc/checkout-service/v2/template/checkoutDetails/{id} HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Accept: */*
{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
},
"id": "text",
"created_at": "2026-01-01",
"updated_at": "2026-01-01",
"status": "ACTIVE"
}Update Template
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
The id parameter in the GET API uniquely identifies a checkout template, allowing you to retrieve detailed information about a specific template by providing its associated identifier.
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseSuccessful
Entity Id can be located on the organization level as Organization ID (Administration > Organizations > [Organization] > Organisation ID value)
Indicates whether billing address is same as shipping address or not.
trueIndicates the order of addresses in which the merchant wants to collect the information from the customer.
falseIndicates whether the template is active or not.
Bad Request
Unauthorized
Forbidden
Internal Server Error
PATCH /oidc/checkout-service/v2/template/checkoutDetails/{id} HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Content-Type: application/json
Accept: */*
Content-Length: 1075
{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
}
}{
"name": "text",
"entity_id": "text",
"billing_is_same_as_shipping": true,
"shipping_first_billing_second": false,
"field_settings": {
"billing": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"company_name": {
"mode": "HIDDEN"
},
"company_registration_number": {
"mode": "HIDDEN"
},
"email_address": {
"mode": "HIDDEN"
},
"entity_id": {
"mode": "HIDDEN"
},
"phone_number": {
"mode": "HIDDEN"
},
"shipping": {
"address_1": {
"mode": "HIDDEN"
},
"address_2": {
"mode": "HIDDEN"
},
"address_3": {
"mode": "HIDDEN"
},
"city": {
"mode": "HIDDEN"
},
"country_code": {
"mode": "HIDDEN"
},
"first_name": {
"mode": "HIDDEN"
},
"middle_name": {
"mode": "HIDDEN"
},
"last_name": {
"mode": "HIDDEN"
},
"phone": {
"mode": "HIDDEN"
},
"postal_code": {
"mode": "HIDDEN"
},
"state": {
"mode": "HIDDEN"
}
},
"title": {
"mode": "HIDDEN"
},
"work_phone": {
"mode": "HIDDEN"
},
"tax": {
"identifier": {
"mode": "HIDDEN"
}
}
},
"id": "text",
"created_at": "2026-01-01",
"updated_at": "2026-01-01",
"status": "ACTIVE"
}Deleting a template is irreversible. Checkouts that referenced the deleted template will not be affected retroactively, but you will no longer be able to apply the template to new sessions.
Delete a template by ID
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
The id parameter in the GET API uniquely identifies a checkout template, allowing you to retrieve detailed information about a specific template by providing its associated identifier.
Success. Template was successfully deleted.
No content
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
DELETE /oidc/checkout-service/v2/template/checkoutDetails/{id} HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Accept: */*
No content
Count Templates
HTTP Basic authentication using entity credentials (username:password encoded in Base64).
Filter templates using RSQL syntax. Combine expressions with ; (AND) or , (OR).
Filterable fields:
| Field | Type | Operators |
|---|---|---|
name | string | == != =in= =out= =regex= =contains= |
created_at | date | == != =in= =out= =gt= =ge= =lt= =le= |
updated_at | date | == != =in= =out= =gt= =ge= =lt= =le= |
entity_id | string | == != =in= =out= =regex= |
Examples:
name==MyTemplate;entity_id==a6b45428-0296-4394-8ddd-0b50b5b20aa9name==TemplateName
Successful
Count
Bad Request
Unauthorized
Forbidden
Internal Server Error
GET /oidc/checkout-service/v2/template/checkoutDetails/count?search=text HTTP/1.1
Host: emea.gsc.verifone.cloud
Authorization: Basic username:password
Accept: */*
{
"count": 1
}Last updated
Was this helpful?
