# Call hosted paid endpoint

Abazi-hosted x402 endpoint for a merchant service: without a payment it answers 402 with the PAYMENT-REQUIRED header; with a valid PAYMENT-SIGNATURE (or a direct-transfer intent) it settles, forwards the request to the merchant origin and returns its response with PAYMENT-RESPONSE. Anyone may call it; 502 when the origin is unreachable.

`GET /x402/{merchant_slug}/{service_slug}`

Abazi-hosted x402 endpoint for a merchant service: without a payment it answers 402 with the PAYMENT-REQUIRED header; with a valid PAYMENT-SIGNATURE (or a direct-transfer intent) it settles, forwards the request to the merchant origin and returns its response with PAYMENT-RESPONSE. Anyone may call it; 502 when the origin is unreachable.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `merchant_slug` | path | yes | Merchant slug, as shown on the public merchant profile. |
| `service_slug` | path | yes | Service slug within that merchant. |
| `*` | query | no | Any query parameters; forwarded unchanged to the merchant origin. |

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **402**: Payment required (x402): the PAYMENT-REQUIRED header carries the payment requirements as base64 JSON; retry with a PAYMENT-SIGNATURE header to pay.
- **404**: The resource does not exist or belongs to another organization.
- **502**: An upstream service (merchant or network) could not be reached.

Example 200 response:

```json
{
  "resource": "string"
}
```
