Skip to content
ajar.Get started

Payment method remove

airbnb.payment_method.remove

View connector

Remove a saved payment method and reconcile the wallet

POST /v1/operations/airbnb.payment_method.remove

Headers

Authorization: Bearer YOUR_AJAR_API_KEY
x-skyscanner-token: YOUR_SKYSCANNER_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
payment_method_refstring"replace-with-reference-from-wallet"
currencystring"GBP"

Example input

{
  "payment_method_ref": "replace-with-reference-from-wallet",
  "currency": "GBP"
}
Open JSON schema

Input schema

{
  "$id": "https://useajar.com/schemas/airbnb/payment-method-remove.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "currency": {
      "default": "GBP",
      "enum": [
        "AED",
        "AUD",
        "BRL",
        "BGN",
        "CAD",
        "CHF",
        "CLP",
        "CNY",
        "COP",
        "CRC",
        "CZK",
        "DKK",
        "EGP",
        "EUR",
        "GBP",
        "GHS",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "JPY",
        "KES",
        "KRW",
        "KZT",
        "MAD",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PEN",
        "PLN",
        "PHP",
        "QAR",
        "RON",
        "SAR",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "TWD",
        "UAH",
        "UGX",
        "USD",
        "UYU",
        "VND",
        "ZAR"
      ],
      "type": "string"
    },
    "payment_method_ref": {
      "maxLength": 2048,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "payment_method_ref"
  ],
  "type": "object"
}