Pay Type
GET /pay-type/mapping/entity/<entity_id>
POST /pay-type/documents/dependencies
POST /pay-type/entity/<entity_id>
POST /pay-type/updateEntitiesWithDependencies
Endpoints
GET /pay-type/current
Summary
Get a list of currently effective active pay type entities for the specified sites as of the given effective_date: effective_date=2016-11-18T19:04:58.124Z.
To narrow the list to specific entity_ids, use: ?effective_date=2016-11-18T19:04:58.124Z&entity_ids=['578e98111fa261f4867bdf12','231e98111fa261f4867bdf08'].
To include the audit fields, use: ?include_audit=true.
To include the inactive documents, use: ?include_inactive=true.
To populate nested entities, use: ?include_nested=true.
To populate specified nested entities only, use: ?include_entities="menu-category", "menu-item-group" .
Other filters can be applied against the entity documents by using the $filter parameter.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
header |
| [ csv of string ] | No | The unique identifiers (UIDs) of the site to manage data for |
query |
| string | No | A filter expression in OData v4 format |
query |
| int32 | No | The maximum documents to return |
query |
| int32 | No | The documents to skip before returning |
query |
| string | No | An order by expression in OData v4 format |
query |
| string | Yes | The date and time to query against |
query |
| [ string ] | No | An array of entity identifiers |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| boolean | No | Include mappings for document in the response |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response. For example, |
query |
| [ csv of string ] | No | Specifies |
query |
| boolean | No | Adds audit fields to each document when returning a result ( |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
GET /pay-type/document/<_id>
Summary
Get one pay type by specific document identifier.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes | The document ID |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response. For example, |
query |
| [ string ] | No | Specifies |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
GET /pay-type/list
Summary
Get a list of active pay type entities for the specified sites as of the given effective_date: effective_date=2016-11-18T19:04:58.124Z.
To narrow the list to specific entity_ids, use: ?effective_date=2016-11-18T19:04:58.124Z&entity_ids=['578e98111fa261f4867bdf12','231e98111fa261f4867bdf08'].
To include the audit fields, use: ?include_audit=true.
To include the inactive documents, use: ?include_inactive=true.
To populate nested entities, use: ?include_nested=true.
To populate specified nested entities only, use: ?include_entities="menu-category", "menu-item-group" .
Other filters can be applied against the entity documents by using the $filter parameter.
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
header |
| [ csv of string ] | No | The unique identifiers (UIDs) of the site to manage data for |
query |
| string | No | A filter expression in OData v4 format |
query |
| int32 | No | The maximum documents to return |
query |
| int32 | No | The documents to skip before returning |
query |
| string | No | An order by expression in OData v4 format |
query |
| string | Yes | The date and time to query against |
query |
| [ string ] | No | An array of entity identifiers |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| [ string ] | No | Specifies entity types for which mappings are presented as a part of the response. For example, |
query |
| [ string ] | No | Specifies |
query |
| boolean | No | Adds audit fields to each document when returning a result ( |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
GET /pay-type/mapping/entity/<entity_id>
Summary
Get a list of pay type mappings for specified sites.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
header |
| [ csv of string ] | No | The unique identifiers (UIDs) of the site to manage data for |
path |
| string | Yes | The entity ID |
query |
| string | No | A filter expression in OData v4 format |
query |
| int32 | No | The maximum documents to return |
query |
| int32 | No | The documents to skip before returning |
query |
| string | No | An order by expression in OData v4 format |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
GET /pay-type/master
Summary
Get a master list of pay type entities, regardless of site.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
query |
| int32 | No | The maximum documents to return |
query |
| int32 | No | The documents to skip before returning |
query |
| string | No | A filter expression in OData v4 format |
query |
| string | No | An order by expression in OData v4 format |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| boolean | No | Include mappings for document in the response |
query |
| [ string ] | No | Specifies |
query |
| boolean | No | Includes the documents that are inactive for the current sites |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST
Summary
Create the list of pay type mappings for the entity and sites.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
header |
| [ csv of string ] | No | The unique identifiers (UIDs) of the site to manage data for |
path |
| string | Yes | The entity ID |
body |
| Yes | The array of the pay type mappings being added |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST /pay-type
Summary
Add a new pay type.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| [ string ] | No | Specifies |
body |
| Yes | The JSON formatted request |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST /pay-type/documents/dependencies
Summary
Check for documents' dependencies.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
body |
| Yes | The JSON formatted request |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST /pay-type/entity/<entity_id>
Summary
Create or update pay types.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes | The entity ID |
body |
| Yes | The JSON formatted request |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST /pay-type/mapping
Summary
Add a new pay type mapping.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
body |
| Yes | The JSON of the pay type mapping being added |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
POST /pay-type/updateEntitiesWithDependencies
Summary
Create or update pay types with the mappings.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
header |
| [ csv of string ] | No | The unique identifiers (UIDs) of the site to manage data for |
body |
| Yes | Supports mappings field (array/boolean) for each document. With mappings, true mappings are created for the current date and sites from |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
PATCH
Summary
Partially update a pay type.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes | The document ID |
query |
| boolean | No | Hydrates related nested objects when returning a result, such as populate a Menu with Menu Categories and Menu Groups |
query |
| [ string ] | No | Specifies |
body |
| Yes | The JSON of the category being patched |
Response Codes
Response | Description | Schema |
|---|---|---|
200 OK | Success | |
400 Bad Request | Bad request, for more information look at body error | |
403 Forbidden | Invalid token | |
404 Not Found | Not found | |
422 Unprocessable Entity | Unprocessable error | |
Default | Unexpected error |
DELETE (entity_id)
Summary
Delete an entity and all versions of it.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes | The entity ID |
Response Codes
Response | Description |
|---|---|
200 OK | Success |
400 Bad Request | Bad request, for more information look at body error |
403 Forbidden | Invalid token |
404 Not Found | Not found |
422 Unprocessable Entity | Unprocessable error |
Default | Unexpected error |
DELETE (_id)
Summary
Delete a pay type.
Request Parameters
In | Field Name | Type | Required | Description |
|---|---|---|---|---|
header |
| string | Yes | The identifier (ID) of the company to manage data for |
path |
| string | Yes | The document ID |
Response Codes
Response | Description |
|---|---|
200 OK | Success |
400 Bad Request | Bad request, for more information look at body error |
403 Forbidden | Invalid token |
404 Not Found | Not found |
422 Unprocessable Entity | Unprocessable error |
Default | Unexpected error |
Data Models
pay_type
A bulk-site entity and lookup table containing pay types.
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The payment type name |
| string | Yes | The pay type code value |
| string | Yes | The payment identifier (ID) |
| No | The external ID | |
| string | No | The pay type ID |
| string | No | The pay type name |
| boolean | No | The flag that indicates whether to allow the tip property |
| number | No | The threshold within the payment type |
| [ string, object ] | No | The products with selected tag(s) cannot be purchased by the current payment type |
| string | No | Defines when tips need to be added to the order. Enum:
|
| boolean | No | Defines if the selected tip method for the current pay type needs to be overridden based on the destination of the order |
| [ object ] | No | Configures the tip method depending on the destination |
| string, object | No | The program that allows the the system to pay for products and is used for this payment method |
| boolean | No | Defines which payment types are allowed to be deposited |
| boolean | No | Option to enable or disable print tip lines |
| boolean | No | The flag that indicates whether to prompt for receipt on the final payment |
| boolean | No | The flag that indicates whether to allow the charge back property |
| boolean | No | The flag that indicates whether to allow the open cash drawer property |
| boolean | No | The flag that indicates whether to allow the quick pay property |
| boolean | No | The flag that indicates whether to require a signature on a transaction when it is greater than a specified amount |
| number (currency) | No | The transaction threshold amount to require a signature |
| boolean | No | A buik-site field. Determines if this payment type can be used for a refund. |
| boolean | No | A buik-site field. Determines if this payment type can be used for a return. |
| string | Yes | The payment class property |
| string | No | The house account type indicates where the house account is managed and provides validation for the system responsible for the account. Enum:
|
| boolean | No | The flag that indicates whether to enable the point of sale (POS) onscreen tip prompt for payment type |
| boolean | No | The flag that indicates whether to enable the POS onscreen signature prompt for payment type |
| boolean | No | The flag that indicates whether to combine tip and signature prompts on the same screen |
| [ string, object ] | No | An array of allowed Order Source entity IDs |
| [ string ] | No | An array of allowed Order Source IDs |
| [ string, object ] | No | An array of restricted Order Source entity IDs |
| [ string ] | No | An array of restricted Order Source IDs |
| string | No | The payment provider or payment gateway name which processes the payment. Enum:
|
| boolean | No | A buik-site field and receipt option |
| boolean | No | A buik-site field and POS display option |
| boolean | No | A buik-site field and email option |
| [ ] | No | A buik-site field and flow type that the order application supports for this payment type |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| object | No | This property contains access control definitions |
| No | The auto-assigned system document ID | |
| No | The ID of the company who owns the document | |
| No | The auto-assigned unique ID (UID) of this entity, set on creation. All future versions of this entity will share the same | |
| No | ||
| No | Marking property is the essence of active documents. Sets in | |
| No | The ID of the OPRA user or site who created this document | |
| No | The ID of the OPRA user or site who last updated this document | |
| No | The last date and time the document was created | |
| No | The last date and time the document was updated | |
| No | The source of a document |
pay_type_create
A bulk-site entity and lookup table containing pay types.
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The payment type name |
| string | Yes | The pay type code value |
| string | Yes | The payment identifier (ID) |
| No | The external ID | |
| string | No | The pay type ID |
| string | No | The pay type name |
| boolean | No | The flag that indicates whether to allow the tip property |
| number | No | The threshold within the payment type |
| [ string, object ] | No | The products with selected tag(s) cannot be purchased by the current payment type |
| string | No | Defines when tips need to be added to the order. Enum:
|
| boolean | No | Defines if the selected tip method for the current pay type needs to be overridden based on the destination of the order |
| [ object ] | No | Configures the tip method depending on the destination |
| string, object | No | The program that allows the the system to pay for products and is used for this payment method |
| boolean | No | Defines which payment types are allowed to be deposited |
| boolean | No | Option to enable or disable print tip lines |
| boolean | No | The flag that indicates whether to prompt for receipt on the final payment |
| boolean | No | The flag that indicates whether to allow the charge back property |
| boolean | No | The flag that indicates whether to allow the open cash drawer property |
| boolean | No | The flag that indicates whether to allow the quick pay property |
| boolean | No | The flag that indicates whether to require a signature on a transaction when it is greater than a specified amount |
| number (currency) | No | The transaction threshold amount to require a signature |
| boolean | No | A buik-site field. Determines if this payment type can be used for a refund. |
| boolean | No | A buik-site field. Determines if this payment type can be used for a return. |
| string | Yes | The payment class property |
| string | No | The house account type indicates where the house account is managed and provides validation for the system responsible for the account. Enum:
|
| boolean | No | The flag that indicates whether to enable the point of sale (POS) onscreen tip prompt for payment type |
| boolean | No | The flag that indicates whether to enable the POS onscreen signature prompt for payment type |
| boolean | No | The flag that indicates whether to combine tip and signature prompts on the same screen |
| [ string, object ] | No | An array of allowed Order Source entity IDs |
| [ string ] | No | An array of allowed Order Source IDs |
| [ string, object ] | No | An array of restricted Order Source entity IDs |
| [ string ] | No | An array of restricted Order Source IDs |
| string | No | The payment provider or payment gateway name which processes the payment. Enum:
|
| boolean | No | A buik-site field and receipt option |
| boolean | No | A buik-site field and POS display option |
| boolean | No | A buik-site field and email option |
| [ ] | No | A buik-site field and flow type that the order application supports for this payment type |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| object | No | This property contains access control definitions |
| No | The auto-assigned unique ID (UID) of this entity, set on creation. All future versions of this entity will share the same |
pay_type_edit
A bulk-site entity and lookup table containing pay types.
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The payment type name |
| string | No | The pay type code value |
| string | No | The payment identifier (ID) |
| No | The external ID | |
| string | No | The pay type ID |
| string | No | The pay type name |
| boolean | No | The flag that indicates whether to allow the tip property |
| number | No | The threshold within the payment type |
| [ string, object ] | No | The products with selected tag(s) cannot be purchased by the current payment type |
| string | No | Defines when tips need to be added to the order. Enum:
|
| boolean | No | Defines if the selected tip method for the current pay type needs to be overridden based on the destination of the order |
| [ object ] | No | Configures the tip method depending on the destination |
| string, object | No | The program that allows the the system to pay for products and is used for this payment method |
| boolean | No | Defines which payment types are allowed to be deposited |
| boolean | No | Option to enable or disable print tip lines |
| boolean | No | The flag that indicates whether to prompt for receipt on the final payment |
| boolean | No | The flag that indicates whether to allow the charge back property |
| boolean | No | The flag that indicates whether to allow the open cash drawer property |
| boolean | No | The flag that indicates whether to allow the quick pay property |
| boolean | No | The flag that indicates whether to require a signature on a transaction when it is greater than a specified amount |
| number (currency) | No | The transaction threshold amount to require a signature |
| boolean | No | A buik-site field. Determines if this payment type can be used for a refund. |
| boolean | No | A buik-site field. Determines if this payment type can be used for a return. |
| string | No | The payment class property |
| string | No | The house account type indicates where the house account is managed and provides validation for the system responsible for the account. Enum:
|
| boolean | No | The flag that indicates whether to enable the point of sale (POS) onscreen tip prompt for payment type |
| boolean | No | The flag that indicates whether to enable the POS onscreen signature prompt for payment type |
| boolean | No | The flag that indicates whether to combine tip and signature prompts on the same screen |
| [ string, object ] | No | An array of allowed Order Source entity IDs |
| [ string ] | No | An array of allowed Order Source IDs |
| [ string, object ] | No | An array of restricted Order Source entity IDs |
| [ string ] | No | An array of restricted Order Source IDs |
| string | No | The payment provider or payment gateway name which processes the payment. Enum:
|
| boolean | No | A buik-site field and receipt option |
| boolean | No | A buik-site field and POS display option |
| boolean | No | A buik-site field and email option |
| [ ] | No | A buik-site field and flow type that the order application supports for this payment type |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| No | A bulk-site field and flow type that the order application supports for this payment type | |
| object | No | This property contains access control definitions |
pay_type_list
Field Name | Type | Required | Description |
|---|---|---|---|
| integer | No | The total number of pay type items in the list |
| No | The pay type list |
mapping_create_request
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The document identifier in the collection the mapping refers to |
| Yes | ||
| string | Yes | |
| string | Yes | The identifiers of the site to manage data for |
mappings_update_request
Field Name | Type | Required | Description |
|---|---|---|---|
| string | Yes | The document identifier in the collection the mapping refers to |
| Yes | ||
| string | Yes | |
| string | Yes | The identifiers of the site to manage data for |
mapping_list_response
Field Name | Type | Description |
|---|---|---|
| integer | The total items on the list |
| The list of items |
document_mapping
Field Name | Type | Description |
|---|---|---|
| The auto-assigned system document identifier (ID) | |
| The ID of the company who owns the document | |
| string | The identifiers of the site to manage data for |
| The auto-assigned unique ID (UID) of this entity, set on creation. All future versions of this entity will share the same | |
| string | The document identifier in the collection the mapping refers to |
| The ID of the OPRA user or site who created this document | |
| The ID of the OPRA user or site who last updated this document | |
| The last date and time the document was created | |
| The last date and time the document was updated |
name
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The pay type name |
code
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | Select international code of the currency according to ISO 4217 |
external_id
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The external identifier (ID) |
paypal_venmo_flow_type
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | A bulk-site field and flow type that the order application supports for this payment type |
xenial_touchless_flow_type
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | A bulk-site field and flow type that the order application supports for this payment type |
citcon_flow_type
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | A bulk-site field and flow type that the order application supports for this payment type |
_id
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The auto-assigned system document identifier (ID) |
company_id
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The identifier (ID) of the company who owns the document |
entity_id
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The auto-assigned unique ID (UID) of this entity, set on creation. All future versions of this entity will share the same |
is_master
Field Name | Type | Required | Description |
|---|---|---|---|
| boolean | No |
is_active
Field Name | Type | Required | Description |
|---|---|---|---|
| boolean | No | Marking property is the essence of active documents. Sets in |
created_by
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The identifier (ID) of the OPRA user or site who created this document |
updated_by
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The identifier (ID) of the OPRA user or site who last updated this document |
created_at
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The last date and time the document was created |
updated_at
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The last date and time the document was updated |
imported_from
Field Name | Type | Required | Description |
|---|---|---|---|
| string | No | The source of a document |