Update a customer

Body JSON
{
  "balance": 18000,
  "address[city]": "New York",
  "address[country]": "USA",
  "address[line1]": "jl.xxxx",
  "description": "test only"
}

PUT https://us-central1-appgregator.cloudfunctions.net/stripe/customers/:id/

Query Parameters

Name
Type
Description

name*

String

ft-4

connection_name*

String

stripe-1

Headers

Name
Type
Description

x-api-key*

String

XXX

{
    "id": "cus_LtLicgvX1EQaV8",
    "object": "customer",
    "address": {
        "city": "New York",
        "country": "USA",
        "line1": "jl.xxxx",
        "line2": null,
        "postal_code": null,
        "state": null
    },
    "balance": 18000,
    "created": 1655448660,
    "currency": "usd",
    "default_currency": "usd",
    "default_source": "src_1LChAzIyq0PiFIhULXbn6LKG",
    "delinquent": false,
    "description": "test only",
    "discount": null,
    "email": "jenny.rosen@example.com",
    "invoice_prefix": "7633C82C",
    "invoice_settings": {
        "custom_fields": null,
        "default_payment_method": "pm_1LBZ1EIyq0PiFIhU48bQlUDF",
        "footer": null,
        "rendering_options": null
    },
    "livemode": false,
    "metadata": {},
    "name": null,
    "next_invoice_sequence": 3,
    "phone": null,
    "preferred_locales": [],
    "shipping": null,
    "tax_exempt": "none",
    "test_clock": null
}
curl --location --request PUT 'https://us-central1-appgregator.cloudfunctions.net/stripe/customers/cus_LtLicgvX1EQaV8?name=ft-4&connection_name=stripe-1' \
--header 'x-api-key: XXX' \
--header 'Content-Type: application/json' \
--data-raw '{
  "balance": 18000,
  "address[city]": "New York",
  "address[country]": "USA",
  "address[line1]": "jl.xxxx",
  "description": "test only" 
}'

Last updated