# Post to hosted paid endpoint

POST form of the hosted x402 endpoint: answers 402 until paid, then forwards the body to the merchant origin and returns its response with PAYMENT-RESPONSE. Anyone may call it; 502 when the origin is unreachable.

`POST /x402/{merchant_slug}/{service_slug}`

POST form of the hosted x402 endpoint: answers 402 until paid, then forwards the body 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. |

## Responses

- **200**: Success.
- **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"
}
```
