Create many payment devices

Create many payment devices

POST api/payment_devices/load

Creates one or more payment devices in a single request.

Request syntax

post api/payment_devices/load '{"payment_devices":[{"store_id":<store_id>,"payment_device_type_id":<payment_device_type_id>},{"store_id":<store_id>,"payment_device_type_id":<payment_device_type_id>}]}'

Request parameters

The request accepts the following data in JSON format.

ParameterTypeDescriptionRequiredDefault value
payment_devicesArray of ObjectsThe payment devices to create. Each object accepts the fields in the following table.YesN/A

Each object in the payment_devices array accepts the following fields.

ParameterTypeDescriptionRequiredDefault value
store_idIntegerThe ID of the store the payment device belongs to.YesN/A
payment_device_type_idIntegerThe ID of the payment device type. For more information, see List all payment device types.YesN/A
register_numberIntegerThe register number the payment device is associated with. Must be unique within the store. Required if Set Register Number as a required field is enabled in the Stores settings.Nonull
mac_addressStringThe MAC address of the payment device.Nonull
groupStringThe group the payment device belongs to.Nonull
product_typeStringThe product type of the payment device, for example EPP.Nonull
device_locationStringThe location of the payment device within the store.Nonull
statusStringThe status of the payment device, for example Deployed or Awaiting Deployment.Nonull
serial_idStringThe serial number of the payment device. Must be unique. Required if Set Serial Number as a required field is enabled in the Stores settings.Nonull
device_ipStringThe IP address of the payment device. Required if Set IP Address as a required field is enabled in the Stores settings in SC//Reliant Platform Manager.Nonull
device_terminal_idStringThe terminal ID of the payment device.Nonull
activeBooleanWhether the payment device is active.Nonull
last_inspected_dateStringThe date the payment device was last inspected.Nonull
action_last_executed_byStringThe user who last performed an action on the payment device.Nonull
action_last_executed_at_timestampStringThe timestamp of the last action performed on the payment device.Nonull
last_transaction_timestampStringThe timestamp of the last transaction processed by the payment device.Nonull
firmware_versionStringThe firmware version of the payment device.Nonull
hardware_versionStringThe hardware version of the payment device.Nonull
p2pe_payment_applicationsStringThe P2PE payment applications installed on the payment device.Nonull
p2pe_non_payment_applicationsStringThe P2PE non-payment applications installed on the payment device.Nonull

Response syntax

{
    "success": boolean,
    "records": [
        {
            "record": {
                "id": integer,
                "store_id": integer,
                "register_number": integer,
                "device_ip": "string",
                "device_terminal_id": "string",
                "active": boolean,
                "created_at": "timestamp",
                "updated_at": "timestamp",
                "payment_device_type_id": integer,
                "mac_address": "string",
                "serial_id": "string",
                "device_location": "string",
                "product_type": "string",
                "group": "string",
                "status": "string",
                "owner_name": "string",
                "status_last_update": "timestamp",
                "serial_id_processed": "string",
                "last_inspected_date": "string",
                "last_serial_error": "string",
                "action_last_executed_by": "string",
                "action_last_executed_at_timestamp": "timestamp",
                "last_inspected_by": "string",
                "last_transaction_timestamp": "string",
                "unit_serial_id": "string",
                "pedpooling": boolean,
                "p2pe_payment_applications": "string",
                "p2pe_non_payment_applications": "string",
                "hardware_version": "string",
                "firmware_version": "string"
            }
        }
    ],
    "exporter_job": integer
}

Response parameters

If the action is successful, an HTTP 201 response is returned. The following data is returned in JSON format.

FieldTypeDescription
successBooleanWhether the request succeeded.
recordsArray of objectsOne object for each payment device created. Each object contains a record object with the details of the created payment device.
exporter_jobIntegerThe ID of the exporter job created for the change.

Errors

The following are errors returned by this API. For a complete list of common errors, see Common errors.

CodeMessageCause
---

Examples

Example: Create two payment devices

This example creates payment devices on registers 902 and 903 in the store with ID 25511.

ruby api.rb <customer_code> post api/payment_devices/load '{"payment_devices":[{"store_id":25511,"payment_device_type_id":144,"register_number":902,"device_ip":"10.53.23.45/26","serial_id":"DOCS-TEST-0002","status":"Deployed"},{"store_id":25511,"payment_device_type_id":144,"register_number":903,"device_ip":"10.53.23.46/26","serial_id":"DOCS-TEST-0003","status":"Deployed"}]}'

Response

{
  "success": true,
  "records": [
    {
      "record": {
        "id": 135739,
        "store_id": 25511,
        "register_number": 902,
        "device_ip": "10.53.23.45/26",
        "device_terminal_id": null,
        "active": true,
        "created_at": "2026-10-10T17:06:11.120Z",
        "updated_at": "2026-10-10T17:06:11.120Z",
        "payment_device_type_id": 144,
        "mac_address": null,
        "serial_id": "DOCS-TEST-0002",
        "device_location": null,
        "product_type": "EPP",
        "group": null,
        "status": "Deployed",
        "owner_name": "Store 2324 (Honolulu/HI): Register 902 (E280FP) Serial number: DOCS-TEST-0002 Ip: 10.53.23.45/26",
        "status_last_update": "2026-10-10T17:06:11.112Z",
        "serial_id_processed": "DOCSTEST0002",
        "last_inspected_date": null,
        "last_serial_error": null,
        "action_last_executed_by": "test.user",
        "action_last_executed_at_timestamp": "2026-10-10T17:06:11.112Z",
        "last_inspected_by": null,
        "last_transaction_timestamp": null,
        "unit_serial_id": null,
        "pedpooling": true,
        "p2pe_payment_applications": "",
        "p2pe_non_payment_applications": "",
        "hardware_version": "",
        "firmware_version": ""
      }
    },
    {
      "record": {
        "id": 135740,
        "store_id": 25511,
        "register_number": 903,
        "device_ip": "10.53.23.46/26",
        "device_terminal_id": null,
        "active": true,
        "created_at": "2026-10-10T17:06:11.147Z",
        "updated_at": "2026-10-10T17:06:11.147Z",
        "payment_device_type_id": 144,
        "mac_address": null,
        "serial_id": "DOCS-TEST-0003",
        "device_location": null,
        "product_type": "EPP",
        "group": null,
        "status": "Deployed",
        "owner_name": "Store 2324 (Honolulu/HI): Register 903 (E280FP) Serial number: DOCS-TEST-0003 Ip: 10.53.23.46/26",
        "status_last_update": "2026-10-10T17:06:11.143Z",
        "serial_id_processed": "DOCSTEST0003",
        "last_inspected_date": null,
        "last_serial_error": null,
        "action_last_executed_by": "test.user",
        "action_last_executed_at_timestamp": "2026-10-10T17:06:11.143Z",
        "last_inspected_by": null,
        "last_transaction_timestamp": null,
        "unit_serial_id": null,
        "pedpooling": true,
        "p2pe_payment_applications": "",
        "p2pe_non_payment_applications": "",
        "hardware_version": "",
        "firmware_version": ""
      }
    }
  ],
  "exporter_job": 1781590
}