Merchants
PATCH/v1/merchant/services/{id}

Update merchant service

View as .md
curl -X PATCH "https://api.52-28-238-205.sslip.io/v1/merchant/services/{id}" \  -H "Cookie: <console session cookie>" \  -H "Content-Type: application/json" \  -d '{"name":"Example","description":"Example","category":"data","price_base_units":"50000","asset":"USDC","accepted_networks":["string"],"payto":{},"url":"https://example.com/resource","method":"GET","input_schema":{},"active":true,"price_cents":"string","delivery_mode":"string"}'

Edits a merchant service; a changed description is screened by Shield. Console session or API key with catalog:edit; changing a verified payTo resets the tier.

Server URLhttps://api.52-28-238-205.sslip.io
PATCH/v1/merchant/services/{id}Base URL: https://api.52-28-238-205.sslip.io
Authorization
  • sessionCookie: <console session cookie>
  • apiKeyAuthorization: Bearer sk_test_...
Path
  • idstringrequired

    Catalog service id (svc_...).

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)

Path Parameters

id*Id

Catalog service id (svc_...).

Request Body

application/json
  1. body
name?|null
description?|null
category?string|null
price_base_units?||

Price in integer base units, carried as a string.

asset?|

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

accepted_networks?array<string>|null
payto?|null
url?|

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

method?string|null
input_schema?|null
active?boolean|null
price_cents?string|integer|null
delivery_mode?string|null

Response Body

Success.

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