Skip to content

Latest commit

 

History

History
74 lines (65 loc) · 1.81 KB

bulk-upsert-order-custom-attributes-response.md

File metadata and controls

74 lines (65 loc) · 1.81 KB

Bulk Upsert Order Custom Attributes Response

Represents a response from a bulk upsert of order custom attributes.

Structure

Bulk Upsert Order Custom Attributes Response

Fields

Name Type Tags Description
errors Array<Error Hash> Optional Any errors that occurred during the request.
values Hash String Upsert Order Custom Attribute Response Hash Required A map of responses that correspond to individual upsert operations for custom attributes.

Example (as JSON)

{
  "errors": [
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    },
    {
      "category": "MERCHANT_SUBSCRIPTION_ERROR",
      "code": "INVALID_EXPIRATION",
      "detail": "detail6",
      "field": "field4"
    }
  ],
  "values": {
    "key0": {
      "custom_attribute": {
        "key": "key2",
        "value": {
          "key1": "val1",
          "key2": "val2"
        },
        "version": 102,
        "visibility": "VISIBILITY_READ_ONLY",
        "definition": {
          "key": "key0",
          "schema": {
            "key1": "val1",
            "key2": "val2"
          },
          "name": "name0",
          "description": "description0",
          "visibility": "VISIBILITY_HIDDEN"
        }
      },
      "errors": [
        {
          "category": "MERCHANT_SUBSCRIPTION_ERROR",
          "code": "INVALID_EXPIRATION",
          "detail": "detail6",
          "field": "field4"
        },
        {
          "category": "MERCHANT_SUBSCRIPTION_ERROR",
          "code": "INVALID_EXPIRATION",
          "detail": "detail6",
          "field": "field4"
        }
      ]
    }
  }
}