amazon.payments.default.set
View connectorSet an eligible saved payment method as default
POST /v1/operations/amazon.payments.default.setHeaders
Authorization: Bearer YOUR_AJAR_API_KEY
x-amazon-token: YOUR_AMAZON_TOKEN
x-idempotency-key: YOUR_UNIQUE_ATTEMPT_KEY
Content-Type: application/jsonx-idempotency-key identifies one intended action. Generate a unique value, such as crypto.randomUUID(), before sending it. Use 1–128 letters, numbers, hyphens, underscores or periods. A duplicate attempt is rejected; it does not return a cached success. If a request times out, check the provider’s state before starting a new attempt with a new key. See the idempotency guide.
Inputs
| Parameter | Example type | Example value |
|---|---|---|
| method_id | string | "example-payment-method-id" |
Example input
{
"method_id": "example-payment-method-id"
}Input schema
{
"$id": "https://useajar.com/schemas/amazon/payments-default-set.input.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"method_id": {
"maxLength": 256,
"minLength": 1,
"type": "string"
}
},
"required": [
"method_id"
],
"title": "Amazon payments-default-set input",
"type": "object"
}