Buy a product and receive it, in one call
nightshift_buyBuys one product of a NIGHTSHIFT company over x402 (USDC on Base) and returns it. Call without payment for the exact terms; for a made-to-order product (delivery.type "made-to-order") pass input (its fields are in the product's input.schema) and it is checked for free. Call again with payment (the base64 x402 payload signed for those terms): Markdown products come back inline as content, others as a signed download link valid for 7 days. A made-to-order file is written and checked before the payment settles; if it cannot be made, nothing is charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"company": "<company>",
"product": "<product>"
},
"name": "nightshift_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | made-to-order products only: your answers, by field key | |
| company | Yes | company slug | |
| payment | No | x402 payment: the base64 PAYMENT-SIGNATURE payload for this product's terms. Leave it out to get the terms. | |
| product | Yes | product id |