Skip to content
Console
On this page

Configure a reseller channel

ConfigureResellerChannel registers a channel or replaces its key bindings and offers.

ConfigureResellerChannel registers a channel or replaces its key bindings and offers.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/reseller_channels/reseller-channel:configure
  • Scope money:partner_channels:configure
  • Effect write — a successful call changes state.
  • Collection reseller_channels

Request

FieldTypeWhat it is
namestringCanonical resource name. Required.
channelResellerChannelProvider-controlled channel configuration. Required.

ResellerChannel

FieldTypeWhat it is
namestringCanonical resource name.
provider_entity_idstringLegal provider that owns this channel and its orders. Required.
key_idsstring[]Exact Access secret key IDs authorized on this channel. Empty suspends partner calls. Required.
webhook_uristringCanonical HTTPS URI of the already registered Events endpoint for this channel. Required.
offersResellerOffer[]Published prices authorized for this reseller and their wholesale floors.

ResellerOffer

FieldTypeWhat it is
price_keystringPrice key from the environment catalog. Required.
hard_cogs_floor_minormap<string, string>Wholesale floor by currency, as decimal minor-unit strings. Required.

Response

FieldTypeWhat it is
namestringCanonical resource name.
uidstringImmutable resource identifier. Output only.
metaResourceMetaResource metadata. Output only.
provider_entity_idstringLegal provider that owns this channel and its orders. Required.
key_idsstring[]Exact Access secret key IDs authorized on this channel. Empty suspends partner calls. Required.
webhook_uristringCanonical HTTPS URI of the already registered Events endpoint for this channel. Required.
offersResellerOffer[]Published prices authorized for this reseller and their wholesale floors.

ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

ResellerOffer

FieldTypeWhat it is
price_keystringPrice key from the environment catalog. Required.
hard_cogs_floor_minormap<string, string>Wholesale floor by currency, as decimal minor-unit strings. Required.

Errors

  • PERMISSION_DENIED — The key lacks the method's permission.
  • RESOURCE_NOT_FOUND — The named Resource does not exist or is not visible.
  • INVALID_FIELD — A field failed validation.
  • FAILED_PRECONDITION — A released manifest owns a requested resource field. Change the declaration in the named file and key path, then release.
  • RESOURCE_IN_USE — The Resource is attached to or held by another Resource, for example a volume attached to a running lease.
  • RESOURCE_ALREADY_EXISTS — A Resource with this name exists.
  • IDEMPOTENCY_KEY_REUSED — An Idempotency-Key was reused with another body.
  • UNAVAILABLE — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body Errors describes.

Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/reseller_channels/reseller-channel:configure" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"channel":{"key_ids":["…"],"provider_entity_id":"…","webhook_uri":"…"}}'