Customer API
  1. account
Customer API
  • common
    • customers
      • customer
        • account
          • transactions
            • transaction
              • Get Transaction
            • List Transactions
          • Get Account
            GET
          • Update Account
            PUT
          • Get account by id
            GET
        • Get Customer
          GET
        • Get Customer w/Account
          GET
        • Update Customer
          PUT
  • host
    • customers
      • Add Customer
      • Add Customers
      • Search Customers
    • customer-account-defaults
      • Get Account Defaults
      • Set Account Defaults
    • default-customer
      • Get Default Customer
    • frequent-customers
      • List Frequent Customers
  • store
    • customers
      • customer
        • account
          • transactions
            • Add Transaction
        • visibility
          • Get Customer Visibility
          • Set Customer Visibility
        • Get Provisioning
        • Provision For Store
        • Publish State Events
        • get customer by account number
      • Add Customer
      • Add & Provision Customer
      • Add Customers
      • Bulk List Customers
      • Search Customers
    • default-customer
      • Get Default Customer
      • Set Default Customer
    • frequent-customers
      • Add Frequent Customer
      • List Frequent Customers
      • Remove Frequent Customer
  1. account

Update Account

Developing
PUT
/customers/{customerId}/account

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

Body Params application/json

Example
{
    "cashOverDays": true,
    "cashOverLimit": true,
    "daysOverDue": 0,
    "limit": 0,
    "billToAddress": {
        "street1": "string",
        "street2": "string",
        "city": "string",
        "state": "string",
        "countryCode": "string",
        "zipCode": "/regex/"
    },
    "defaultPayType": "CASH",
    "payTypes": [
        "CASH"
    ],
    "priceCode": 0,
    "taxCode": 0,
    "requiresSignatureCapture": true,
    "version": 0,
    "status": "ACTIVE"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://mock.apidog.com/m1/365924-0-default/customers//account' \
--header 'Content-Type: application/json' \
--data-raw '{
    "cashOverDays": true,
    "cashOverLimit": true,
    "daysOverDue": 0,
    "limit": 0,
    "billToAddress": {
        "street1": "string",
        "street2": "string",
        "city": "string",
        "state": "string",
        "countryCode": "string",
        "zipCode": "/regex/"
    },
    "defaultPayType": "CASH",
    "payTypes": [
        "CASH"
    ],
    "priceCode": 0,
    "taxCode": 0,
    "requiresSignatureCapture": true,
    "version": 0,
    "status": "ACTIVE"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "data": {
        "id": 0,
        "status": "ACTIVE",
        "billToAddress": {
            "street1": "string",
            "street2": "string",
            "city": "string",
            "state": "string",
            "countryCode": "string",
            "zipCode": "/regex/"
        },
        "balance": 0,
        "creditLimit": 0,
        "cashOverLimit": false,
        "cashOverDays": false,
        "ageInDays": 0,
        "defaultPayType": "CASH",
        "payTypes": [
            "CASH"
        ],
        "priceCode": 0,
        "taxCode": "string",
        "maxDays": 0,
        "signatureRequired": false,
        "version": 0
    }
}
🟠403Forbidden
🟠400Bad Request
Modified at 2025-05-03 00:23:20
Previous
Get Account
Next
Get account by id
Built with