Skip to content
ajar.Get started

Payment method add

starbucks.payment_method.add

View connector

Tokenize a card with Worldpay and add it to a Starbucks UK account

POST /v1/operations/starbucks.payment_method.add

Restricted access · live-write. Examples use fictional values and do not execute requests.

Inputs

ParameterExample typeExample value
card_numberstring"4242424242424242"
cardholderstring"Example Customer"
cvcstring"123"
expiry_monthnumber12
expiry_yearnumber2030
billing_addressobject{"address_line_1":"1 Example Street","city":"London","postal_code":"SW1A 1AA"}
confirm_addbooleantrue

Example input

{
  "card_number": "4242424242424242",
  "cardholder": "Example Customer",
  "cvc": "123",
  "expiry_month": 12,
  "expiry_year": 2030,
  "billing_address": {
    "address_line_1": "1 Example Street",
    "city": "London",
    "postal_code": "SW1A 1AA"
  },
  "confirm_add": true
}

Input schema

{
  "$id": "https://priv-platform.local/connectors/starbucks/payment-method-add.input.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "billing_address": {
      "additionalProperties": false,
      "properties": {
        "address_line_1": {
          "maxLength": 160,
          "minLength": 1,
          "type": "string",
          "x-sensitive": true
        },
        "address_line_2": {
          "maxLength": 160,
          "type": "string",
          "x-sensitive": true
        },
        "city": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "x-sensitive": true
        },
        "postal_code": {
          "maxLength": 24,
          "minLength": 1,
          "type": "string",
          "x-sensitive": true
        }
      },
      "required": [
        "address_line_1",
        "city",
        "postal_code"
      ],
      "type": "object"
    },
    "card_number": {
      "pattern": "^[0-9]{12,19}$",
      "type": "string",
      "x-sensitive": true
    },
    "cardholder": {
      "maxLength": 120,
      "minLength": 1,
      "type": "string",
      "x-sensitive": true
    },
    "confirm_add": {
      "const": true
    },
    "cvc": {
      "pattern": "^[0-9]{3,4}$",
      "type": "string",
      "x-sensitive": true
    },
    "expiry_month": {
      "maximum": 12,
      "minimum": 1,
      "type": "integer",
      "x-sensitive": true
    },
    "expiry_year": {
      "maximum": 2100,
      "minimum": 2026,
      "type": "integer",
      "x-sensitive": true
    }
  },
  "required": [
    "card_number",
    "cvc",
    "expiry_month",
    "expiry_year",
    "cardholder",
    "billing_address",
    "confirm_add"
  ],
  "title": "Secret card input for Starbucks UK payment method add",
  "type": "object"
}