Create Seller

Creates a new franchise seller mapping. A seller is created under a specific account_code, but is available organization-wide.

Each (provider.id, payment_method_type) combination must be unique within the payment_method array.

POST/sellers

Creates a new franchise seller mapping.

Header Parameters

public-api-keystringrequired
private-secret-keystringrequired

Body application/json

account_idstring<uuid>required
merchant_seller_idstringrequired
namestring
emailstring<email>
phoneobject
Show phone properties
codestring

Country dialing code (e.g. +1, +57).

numberstring
documentobject
Show document properties
typestring
numberstring
addressobject
Show address properties
line_1string
line_2string
citystring
statestring
countrystring
zip_codestring
countrystring

ISO 3166-1 alpha-2 country code.

websitestring
industrystring
merchant_category_codestring
payment_methodsobject[]
Show payment_methods properties
provider_idstringrequired
payment_method_typestringrequired
merchant_idstring
wallet_detailsobject
Show wallet_details properties
payment_processing_keystring
payment_processing_certificatestring
merchant_identity_keystring
merchant_identity_certificatestring
merchant_identity_passwordstring

Response

Created

seller_idstring<uuid>
merchant_seller_idstring
namestring
emailstring
phoneobject
Show phone properties
codestring

Country dialing code (e.g. +1, +57).

numberstring
documentobject
Show document properties
typestring
numberstring
addressobject
Show address properties
line_1string
line_2string
citystring
statestring
countrystring
zip_codestring
countrystring
websitestring
industrystring
merchant_category_codestring
payment_methodsobject[]
Show payment_methods properties
provider_idstring
payment_method_typestring
merchant_idstring
wallet_detailsobject
Show wallet_details properties
payment_processing_keystring
payment_processing_certificatestring
merchant_identity_keystring
merchant_identity_certificatestring
merchant_identity_passwordstring
created_atstring<date-time>
updated_atstring<date-time>

Bad Request

codestring
messagestring

Unauthorized

codestring
messagestring

Conflict

codestring
messagestring
Request
curl -X POST "https://api-sandbox.whitelabel.com/v1/sellers" \
  -H "Content-Type: application/json" \
  -H "public-api-key: <public-api-key>" \
  -H "private-secret-key: <private-secret-key>" \
  -d '{
  "account_id": "00000000-0000-0000-0000-000000000000",
  "merchant_seller_id": "string",
  "name": "string",
  "email": "user@example.com",
  "phone": {
    "code": "string",
    "number": "string"
  },
  "document": {
    "type": "string",
    "number": "string"
  },
  "address": {
    "line_1": "string",
    "line_2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "zip_code": "string"
  },
  "country": "string",
  "website": "string",
  "industry": "string",
  "merchant_category_code": "string",
  "payment_methods": [
    {
      "provider_id": "string",
      "payment_method_type": "string",
      "merchant_id": "string",
      "wallet_details": {
        "payment_processing_key": "string",
        "payment_processing_certificate": "string",
        "merchant_identity_key": "string",
        "merchant_identity_certificate": "string",
        "merchant_identity_password": "string"
      }
    }
  ]
}'
Response
{
  "seller_id": "00000000-0000-0000-0000-000000000000",
  "merchant_seller_id": "string",
  "name": "string",
  "email": "string",
  "phone": {
    "code": "string",
    "number": "string"
  },
  "document": {
    "type": "string",
    "number": "string"
  },
  "address": {
    "line_1": "string",
    "line_2": "string",
    "city": "string",
    "state": "string",
    "country": "string",
    "zip_code": "string"
  },
  "country": "string",
  "website": "string",
  "industry": "string",
  "merchant_category_code": "string",
  "payment_methods": [
    {
      "provider_id": "string",
      "payment_method_type": "string",
      "merchant_id": "string",
      "wallet_details": {
        "payment_processing_key": "string",
        "payment_processing_certificate": "string",
        "merchant_identity_key": "string",
        "merchant_identity_certificate": "string",
        "merchant_identity_password": "string"
      }
    }
  ],
  "created_at": "1970-01-01T00:00:00.000Z",
  "updated_at": "1970-01-01T00:00:00.000Z"
}