Skip to content

Commit 6436aac

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#1321)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 2d80597 commit 6436aac

1 file changed

Lines changed: 41 additions & 6 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11480,6 +11480,37 @@ components:
1148011480
required:
1148111481
- 'data'
1148211482
type: 'object'
11483+
CreditPurchaseUnavailableResponse:
11484+
example:
11485+
error:
11486+
code: 503
11487+
message: 'The payment transfer could not be confirmed; poll the purchase before retrying'
11488+
metadata:
11489+
purchase_id: 'pi_3PqXyZ2eZvKYlo2C0abc1234'
11490+
properties:
11491+
error:
11492+
properties:
11493+
code:
11494+
type: 'integer'
11495+
message:
11496+
type: 'string'
11497+
metadata:
11498+
description: 'Present when the outcome of a paid request is unknown and its purchase is known.'
11499+
properties:
11500+
purchase_id:
11501+
description: 'The purchase to poll with `GET /api/v1/credits/purchases/{id}` before paying again.'
11502+
example: 'pi_3PqXyZ2eZvKYlo2C0abc1234'
11503+
type: 'string'
11504+
required:
11505+
- 'purchase_id'
11506+
type: 'object'
11507+
required:
11508+
- 'code'
11509+
- 'message'
11510+
type: 'object'
11511+
required:
11512+
- 'error'
11513+
type: 'object'
1148311514
CustomTool:
1148411515
description: 'Custom tool configuration'
1148511516
example:
@@ -42986,13 +43017,17 @@ paths:
4298643017
'503':
4298743018
content:
4298843019
application/json:
42989-
example:
42990-
error:
42991-
code: 503
42992-
message: 'Service temporarily unavailable'
4299343020
schema:
42994-
$ref: '#/components/schemas/ServiceUnavailableResponse'
42995-
description: 'Service Unavailable - Service temporarily unavailable'
43021+
$ref: '#/components/schemas/CreditPurchaseUnavailableResponse'
43022+
description: 'Temporarily unavailable, or the outcome of a paid request is unknown. When the outcome is unknown and the purchase is known, `Location` and `error.metadata.purchase_id` name the purchase: poll it before paying again.'
43023+
headers:
43024+
Location:
43025+
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`. Present when the outcome of a paid request is unknown and its purchase is known.'
43026+
required: false
43027+
schema:
43028+
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`. Present when the outcome of a paid request is unknown and its purchase is known.'
43029+
example: '/api/v1/credits/purchases/pi_3PqXyZ2eZvKYlo2C0abc1234'
43030+
type: 'string'
4299643031
security:
4299743032
- bearerAuth: []
4299843033
summary: 'Buy credits with a machine payment'

0 commit comments

Comments
 (0)