Customer .update
PATCH /{namespace}/customers/{id}
Changes the given properties of a Customer.
- Noun
- Customer
- Mode
do- Event
Customer.updated
Update changes the given properties of a Customer. It is inherited: every Noun has get, list, create, update and delete.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
id | string | required | The id of the Customer. |
since | datetime | When the party first accepted an Offer. | |
outside | boolean | Computed: true when it shares no owner, account, or sibling chain with the Startup. | |
billingEmail | email | Where Invoices and receipts go, when it differs from the sign-in email. | |
billingAddress | text | The address printed on new Invoices; Stripe Tax reads it to compute tax. | |
taxIds | string[] | The Customer’s tax ids, such as a VAT number, printed on new Invoices and read by Stripe Tax. | |
creditRecharge | json | When unspent credit falls below below, buy amount of the credit Offer with the default Payment Source. |
Outputs
| Output | Type | Required | Description |
|---|---|---|---|
customer | Customer | required | The Customer. |
Effects
- Emits
Customer.updated. - Two-way:
try,send,do.
Refuses when
| Check | Error | Fix | Then call |
|---|---|---|---|
| The key is valid, but its scopes do not allow this operation. | forbidden | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | Customer.update |
When it waits
| Gate | Default |
|---|---|
| Decision class | Low: two-way, nothing at stake |
| Delay window | None: it runs once review passes. |
| Limit | The call Limit of the Permission it runs under. |
| Over the Limit | It waits pending for an Approval from the Founder. Approved, it runs; refused, it ends refused with limit-exceeded; unanswered by its deadline, it ends canceled. |