curl --request POST \
--url https://api.paygentic.io/v0/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"organizationId": "<string>"
}'
{
"id": "<string>",
"object": "merchant",
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Create a new merchant organization. A merchant organization represents a business entity that sells one or more products. Merchant organizations own resources such as products
, prices
, customers
, subscriptions
, etc.
curl --request POST \
--url https://api.paygentic.io/v0/merchants \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"organizationId": "<string>"
}'
{
"id": "<string>",
"object": "merchant",
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Merchant organization created successfully
The response is of type object
.