Skip to main content
POST
/
v1
/
crm
/
merchants
/
{merchantId}
/
pricing-items
Create a Pricing Item
curl --request POST \
  --url https://api.example.com/v1/crm/merchants/{merchantId}/pricing-items \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "name": "<string>",
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "key": "<string>",
  "name": "<string>",
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Enter token in following format: Bearer

Path Parameters

merchantId
string
required

Body

application/json
key
string | null
required
Maximum string length: 255
type
enum<string> | null
required
Available options:
per,
charge
name
string | null
required
Maximum string length: 255
description
string | null
required
Maximum string length: 255

Response

The created pricing item.

id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
key
string | null
required
Maximum string length: 255
type
enum<string> | null
required
Available options:
per,
charge
name
string | null
required
Maximum string length: 255
description
string | null
required
Maximum string length: 255