Skip to content

API Calls

Base: https://api.g3nretailstack.com/ucp

Source of truth: /internal-docs/ucp-openapi.yaml/ucp/openapi.yaml

Notes: samples are schema-derived placeholders. Replace placeholder values (ORGCODE, SESSION_GUID, etc.) with real values.

Inventory

MethodPathSummaryRequest schemaResponse schema
GET/.well-known/ucpUCP capability profile per orgNoneEnvelope
POST/checkout/cancelCancel checkout sessionNoneEnvelope
POST/checkout/completeFinalize checkout → SCM orderNoneEnvelope
POST/checkout/createCreate checkout session with cartNoneEnvelope
POST/checkout/getGet checkout session stateNoneEnvelope
POST/checkout/updateFull cart replacementNoneEnvelope
POST/config/getGet UCP org configNoneEnvelope
POST/config/setSet UCP org configNoneEnvelope
GET/identity/.well-known/oauth-authorization-serverRFC 8414 OAuth Authorization Server MetadataNoneEnvelope
POST/identity/authorizeAdmin generates auth code for customer↔platform linkAuthCodeRequestEnvelope
POST/identity/link/listList identity links per platform or customerNoneLinkListResponse
POST/identity/link/revokeAdmin revokes an identity link (cascades to tokens)NoneEnvelope
POST/identity/revokeRevoke access or refresh token (RFC 7009)RevokeRequestEnvelope
POST/identity/tokenExchange auth code for access + refresh tokensTokenRequestTokenResponse
POST/identity/userinfoGet linked customer info via bearer tokenNoneUserinfoResponse
POST/platform/getGet platform detailsNoneEnvelope
POST/platform/listList org platformsNoneEnvelope
POST/platform/registerRegister platform credentialsNoneEnvelope
POST/platform/revokeRevoke platformNoneEnvelope
POST/platform/rotateRotate client secretNoneEnvelope
GET/statHealth/build checkNoneEnvelope
POST/webhook/config/getGet webhook configNoneEnvelope
POST/webhook/config/setSet webhook event filters per platformNoneEnvelope
POST/webhook/testSend test webhook to platform callback_urlNoneEnvelope

Call details

GET /.well-known/ucp

Purpose: UCP capability profile per org

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "GET /.well-known/ucp",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /checkout/cancel

Purpose: Cancel checkout session

Notes: If this updates a revisioned record, expected_revision is required.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /checkout/cancel",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /checkout/complete

Purpose: Finalize checkout → SCM order

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /checkout/complete",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /checkout/create

Purpose: Create checkout session with cart

Notes: If this updates a revisioned record, expected_revision is required.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /checkout/create",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /checkout/get

Purpose: Get checkout session state

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /checkout/get",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /checkout/update

Purpose: Full cart replacement

Notes: If this updates a revisioned record, expected_revision is required.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /checkout/update",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /config/get

Purpose: Get UCP org config

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /config/get",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /config/set

Purpose: Set UCP org config

Notes: If this updates a revisioned record, expected_revision is required.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /config/set",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

GET /identity/.well-known/oauth-authorization-server

Purpose: RFC 8414 OAuth Authorization Server Metadata

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "GET /identity/.well-known/oauth-authorization-server",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/authorize

Purpose: Admin generates auth code for customer↔platform link

Request schema: AuthCodeRequest Response schema: Envelope

Sample request (schema-derived)

json
{
  "platform_guid": "string",
  "customer_guid": "string"
}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/authorize",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/link/list

Purpose: List identity links per platform or customer

Notes: Paginated; use limit and next_token.

Request schema: None Response schema: LinkListResponse

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See LinkListResponse"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/link/list",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/link/revoke

Purpose: Admin revokes an identity link (cascades to tokens)

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/link/revoke",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/revoke

Purpose: Revoke access or refresh token (RFC 7009)

Request schema: RevokeRequest Response schema: Envelope

Sample request (schema-derived)

json
{
  "client_id": "string",
  "client_secret": "string",
  "token": "string"
}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/revoke",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/token

Purpose: Exchange auth code for access + refresh tokens

Request schema: TokenRequest Response schema: TokenResponse

Sample request (schema-derived)

json
{
  "client_id": "string",
  "client_secret": "string",
  "grant_type": "authorization_code"
}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See TokenResponse"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/token",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /identity/userinfo

Purpose: Get linked customer info via bearer token

Request schema: None Response schema: UserinfoResponse

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See UserinfoResponse"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /identity/userinfo",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /platform/get

Purpose: Get platform details

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /platform/get",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /platform/list

Purpose: List org platforms

Notes: Paginated; use limit and next_token.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /platform/list",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /platform/register

Purpose: Register platform credentials

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /platform/register",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /platform/revoke

Purpose: Revoke platform

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /platform/revoke",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /platform/rotate

Purpose: Rotate client secret

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /platform/rotate",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

GET /stat

Purpose: Health/build check

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "GET /stat",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /webhook/config/get

Purpose: Get webhook config

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /webhook/config/get",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /webhook/config/set

Purpose: Set webhook event filters per platform

Notes: If this updates a revisioned record, expected_revision is required.

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /webhook/config/set",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}

POST /webhook/test

Purpose: Send test webhook to platform callback_url

Request schema: None Response schema: Envelope

Sample request (schema-derived)

json
{}

Sample response (shape-only)

json
{
  "success": true,
  "data": {
    "note": "See Envelope"
  },
  "build": {
    "build_id": "MONDAY-0000000000"
  },
  "stats": {
    "call": "POST /webhook/test",
    "service": "ucp",
    "timestamp_utc": "2026-01-01T00:00:00Z"
  }
}