Access
| Property | Value |
|---|---|
| OAuth scope | purchases:write |
| Effect | reversible |
readOnlyHint | No |
destructiveHint | Yes |
idempotentHint | Yes |
openWorldHint | No |
Arguments
| Field | Type | Required | Description |
|---|---|---|---|
request_id | string (uuid) | Yes | The Request’s id from list_requests. |
question_id | "still_want" or string | Yes | The question’s id from get_request, or still_want. |
answer | object | Yes | choice: one of the question’s choices (yes or pause for still_want). text: the number (money_minor: cents for USD). null: the person doesn’t know. |
answer.choice | string or null | No | |
answer.text | string or null | No | |
request_key | string | No | Optional. The same key repeats a change safely; one is derived when left out. |
Input JSON Schema
Input JSON Schema
{
"type": "object",
"properties": {
"request_id": {
"type": "string",
"format": "uuid",
"description": "The Request’s id from list_requests."
},
"question_id": {
"anyOf": [
{
"type": "string",
"const": "still_want"
},
{
"type": "string",
"pattern": "^[0-9a-f-]{36}(:[a-z][a-z0-9_]{0,39})?$"
}
],
"description": "The question’s id from get_request, or still_want."
},
"answer": {
"type": "object",
"properties": {
"choice": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 80
},
{
"type": "null"
}
]
},
"text": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 80
},
{
"type": "null"
}
]
}
},
"additionalProperties": false,
"description": "choice: one of the question’s choices (yes or pause for still_want). text: the number (money_minor: cents for USD). null: the person doesn’t know."
},
"request_key": {
"description": "Optional. The same key repeats a change safely; one is derived when left out.",
"type": "string",
"minLength": 8,
"maxLength": 64
}
},
"required": [
"request_id",
"question_id",
"answer"
],
"additionalProperties": false
}
Output JSON Schema
Output JSON Schema
{
"type": "object",
"properties": {
"result": {
"type": "object",
"properties": {
"request_id": {
"type": "string"
},
"question_id": {
"type": "string"
},
"recorded": {
"type": "boolean"
},
"effect": {
"type": [
"string",
"null"
]
},
"next_step": {
"type": [
"string",
"null"
]
}
},
"required": [
"request_id",
"question_id",
"recorded",
"effect",
"next_step"
],
"additionalProperties": {}
}
},
"required": [
"result"
],
"additionalProperties": false
}