Skip to content
ajar.Book a demo

Checkout address set

amazon.checkout.address.set

View connector

Select a saved shipping address for a checkout pipeline

POST /v1/operations/amazon.checkout.address.set

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
x-amazon-token: YOUR_AMAZON_TOKEN
x-idempotency-key: YOUR_UNIQUE_ATTEMPT_KEY
Content-Type: application/json

x-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

ParameterExample typeExample value
pipeline_idstring"p-000-0000000-0000000"
address_idstring"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"

Example input

{
  "pipeline_id": "p-000-0000000-0000000",
  "address_id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/amazon/checkout-address-set.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "address_id": {
      "pattern": "^[A-Za-z0-9_-]{64}$",
      "type": "string"
    },
    "pipeline_id": {
      "pattern": "^p-[0-9]{3}-[0-9]{7}-[0-9]{7}$",
      "type": "string"
    }
  },
  "required": [
    "pipeline_id",
    "address_id"
  ],
  "title": "Amazon checkout-address-set input",
  "type": "object"
}