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"
}
}
]
}'
const response = await fetch(`https://api-sandbox.whitelabel.com/v1/sellers`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
"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"
}
}
]
})
});
const data = await response.json();
import requests
response = requests.request(
"POST",
"https://api-sandbox.whitelabel.com/v1/sellers",
json={
"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"
}
}
]
},
)
data = response.json()
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api-sandbox.whitelabel.com/v1/sellers");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["Content-Type: application/json"]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{
"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 = curl_exec($ch);
curl_close($ch);
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://api-sandbox.whitelabel.com/v1/sellers", strings.NewReader(`{
"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"
}
}
]
}`))
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
data, _ := io.ReadAll(resp.Body)
fmt.Println(string(data))
}
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api-sandbox.whitelabel.com/v1/sellers"))
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\n \"account_id\": \"00000000-0000-0000-0000-000000000000\",\n \"merchant_seller_id\": \"string\",\n \"name\": \"string\",\n \"email\": \"user@example.com\",\n \"phone\": {\n \"code\": \"string\",\n \"number\": \"string\"\n },\n \"document\": {\n \"type\": \"string\",\n \"number\": \"string\"\n },\n \"address\": {\n \"line_1\": \"string\",\n \"line_2\": \"string\",\n \"city\": \"string\",\n \"state\": \"string\",\n \"country\": \"string\",\n \"zip_code\": \"string\"\n },\n \"country\": \"string\",\n \"website\": \"string\",\n \"industry\": \"string\",\n \"merchant_category_code\": \"string\",\n \"payment_methods\": [\n {\n \"provider_id\": \"string\",\n \"payment_method_type\": \"string\",\n \"merchant_id\": \"string\",\n \"wallet_details\": {\n \"payment_processing_key\": \"string\",\n \"payment_processing_certificate\": \"string\",\n \"merchant_identity_key\": \"string\",\n \"merchant_identity_certificate\": \"string\",\n \"merchant_identity_password\": \"string\"\n }\n }\n ]\n}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
require "net/http"
require "uri"
uri = URI("https://api-sandbox.whitelabel.com/v1/sellers")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Post.new(uri)
request["Content-Type"] = "application/json"
request.body = "{\n \"account_id\": \"00000000-0000-0000-0000-000000000000\",\n \"merchant_seller_id\": \"string\",\n \"name\": \"string\",\n \"email\": \"user@example.com\",\n \"phone\": {\n \"code\": \"string\",\n \"number\": \"string\"\n },\n \"document\": {\n \"type\": \"string\",\n \"number\": \"string\"\n },\n \"address\": {\n \"line_1\": \"string\",\n \"line_2\": \"string\",\n \"city\": \"string\",\n \"state\": \"string\",\n \"country\": \"string\",\n \"zip_code\": \"string\"\n },\n \"country\": \"string\",\n \"website\": \"string\",\n \"industry\": \"string\",\n \"merchant_category_code\": \"string\",\n \"payment_methods\": [\n {\n \"provider_id\": \"string\",\n \"payment_method_type\": \"string\",\n \"merchant_id\": \"string\",\n \"wallet_details\": {\n \"payment_processing_key\": \"string\",\n \"payment_processing_certificate\": \"string\",\n \"merchant_identity_key\": \"string\",\n \"merchant_identity_certificate\": \"string\",\n \"merchant_identity_password\": \"string\"\n }\n }\n ]\n}"
response = http.request(request)
puts response.body