Skip to content

Latest commit

 

History

History
50 lines (41 loc) · 1.27 KB

create-vendor-response.md

File metadata and controls

50 lines (41 loc) · 1.27 KB

Create Vendor Response

Represents an output from a call to CreateVendor.

Structure

CreateVendorResponse

Fields

Name Type Tags Description Getter Setter
errors ?(Error[]) Optional Errors encountered when the request fails. getErrors(): ?array setErrors(?array errors): void
vendor ?Vendor Optional Represents a supplier to a seller. getVendor(): ?Vendor setVendor(?Vendor vendor): void

Example (as JSON)

{
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "MAP_KEY_LENGTH_TOO_LONG",
      "detail": "detail6",
      "field": "field4"
    }
  ],
  "vendor": {
    "id": "id6",
    "created_at": "created_at4",
    "updated_at": "updated_at2",
    "name": "name6",
    "address": {
      "address_line_1": "address_line_16",
      "address_line_2": "address_line_26",
      "address_line_3": "address_line_32",
      "locality": "locality6",
      "sublocality": "sublocality6"
    }
  }
}