Skip to content
Sales Channels

Create Sales Channelexperimental

POST/api/sales-channels

This endpoint allows you to create a Sales Channel.

Request body

  • accountIdrequired string
    Id of the Account that owns the Sales Channel.
  • namerequired string
    The display name of the Sales Channel.
  • typerequired enum
    The type of the Sales Channel integration.
    • provider
      A channel run by a device or terminal provider.
    • reseller
      A channel run by a reseller of a provider's devices, which references the provider's channel through providerSalesChannelId.
  • deviceIdoptional boolean
    true if the device id is required to onboard to Sales Channel.
  • deviceModeloptional boolean
    true if the device model is required to onboard to Sales Channel.
  • deviceSerialNumberoptional boolean
    true if a device serial number is required to onboard to Sales Channel.
  • notificationEmailoptional string
    Email to notify for requests to connect to Sales Channel. Either notificationEmail or notificationUrl required.
  • notificationFrequencyoptional enum
    Frequency of notification emails. Required if notificationEmail is set and notificationUrl is not.
    • daily
      Notification emails are sent once a day.
    • weekly
      Notification emails are sent once a week.
  • notificationUrloptional string
    Url for web hook notifications for requests to connect to Sales Channel. Either notificationEmail or notificationUrl required.
  • providerSalesChannelIdoptional string
    The id of the Sales Channel for the device provider. Required if type is reseller, otherwise not allowed.

Responses

Request
curl -X POST https://service.centrapay.com/api/sales-channels \
-H 'content-type: application/json' \
-H 'x-api-key: <TOKEN>' \
-d '{
"accountId": "Jaim1Cu1Q55uooxSens6yk",
"deviceId": true,
"deviceModel": true,
"deviceSerialNumber": true,
"name": "My Sales Channel",
"notificationEmail": "support@centrapay.com",
"notificationFrequency": "weekly",
"providerSalesChannelId": "sc_5efbe17d96c083633e2b9241",
"type": "reseller"
}'