POST:organizations.json
Commerce APIPOST:organizations.json

POST:organizations.json

organizationsModify

Description

Modify an existing organization.

Even though API takes array as body, modifying only one organization at a time is allowed. API looks like that for consistency reasons.

Topic: Organizations

Query Parameters

organization_id: String

Unique organization identifier. See also: Unique Identifiers

Example: ?organization_id=og_EQzGqWoY

Request Body

Array of OrganizationModify

[
  {
    "billing_address": {
      "address1": "Chestnut Street 92",
      "address2": "Apartment 2",
      "city": "Louisville",
      "company": "Google inc.",
      "country": "US",
      "id": "ad_EQzGqWoY",
      "name": "John Smith",
      "phone": "5556251199",
      "plus_code": "PQ7W+WM",
      "province": "KY",
      "zip": "40202"
    },
    "custom_invoice_text": "",
    "default_payment_method_id": "pm_EQzGqWoY",
    "name": "FooBar Inc."
  }
]

Response Body

Array of Organization

Response Body Type

Loading module