Merchants
POST/v1/merchant/services

Create merchant service

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/merchant/services" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example","price_base_units":"50000","url":"https://example.com/resource"}'

Adds a paid service with price, networks, payTo and origin URL; the description is screened by Shield. Console session or API key with catalog:edit; a payTo that differs from the verified one resets the tier.

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/merchant/servicesBase URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Body

application/json · required. Fields are listed under Request body below.

Requires permissioncatalog:edit
Held by merchant_owner, merchant_developer. The caller must hold this permission, or the call is refused with 403.

Authorization

cookieuapg_session<token>

Console session cookie (HttpOnly, SameSite=Lax)

Request Body

application/json
  1. body
name*Name
Length1 <= length <= 200
description?Description
Lengthlength <= 280
Default""
category?Category
Default"data"
price_base_units*|

Price in integer base units, carried as a string.

asset?Asset

Asset symbol, for example USDC or USDT; USD for card amounts.

Default"USDC"
accepted_networks?array<string>
Default[]
payto?|null
url*Url

URL of a paid resource. Use it for a merchant that is not in the Catalog; Abazi reads its 402 response.

Length1 <= length <= 2000
method?Method
Default"GET"
input_schema?|null
slug?string|null
price_cents?string|integer|null
delivery_mode?Delivery Mode
Default"respond"

Response Body

Success.

application/json
  1. response
service*
warning?string|null
tier_reset*Tier Reset
[key: string]?any