---
title: Create a Merchant Location
slug: mihai-tests/create-a-merchant-location
createdAt: 2025-05-02T10:16:35.484Z
---

{
  "id": "I_-UZBnzL5RbmuEXrPw6Y",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.sandbox.tripleup.dev/partner/merchant-locations",
    "servers": [
      {
        "url": "https://api.sandbox.tripleup.dev/partner/merchant-locations",
        "description": "triple Sandbox"
      }
    ],
    "name": "Create a Merchant Location",
    "description": "Creates a Merchant Location.\n",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "address",
              "kind": "optional",
              "type": "object",
              "description": "A physical address in the world, with required fields.\n\ntriple uses address validation services to update and standardize\naddresses on our platform. Address data sent to the API may be updated\nas we process, validate, and normalize addresses.\n",
              "modelRef": "#/components/schemas/StrictAddress",
              "customType": "StrictAddress",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "Address",
                  "description": "",
                  "modelRef": "#/components/schemas/Address",
                  "schema": [
                    {
                      "name": "city",
                      "kind": "optional",
                      "type": "string",
                      "description": "Municipality or city name",
                      "example": "PITTSBURGH"
                    },
                    {
                      "name": "complete",
                      "kind": "optional",
                      "type": "string",
                      "description": "The complete delivery address, composed from the Address properties.\n",
                      "example": "7370 BAKER ST, STE 100\nPITTSBURGH, PA 15206",
                      "modelRef": "#/components/schemas/CompleteAddress",
                      "customType": "CompleteAddress",
                      "schema": []
                    },
                    {
                      "name": "country_code",
                      "kind": "optional",
                      "type": "string",
                      "description": "2-letter ISO-3166 country code",
                      "example": "US",
                      "modelRef": "#/components/schemas/CountryCode",
                      "customType": "CountryCode",
                      "schema": []
                    },
                    {
                      "name": "country_subdivision_code",
                      "kind": "optional",
                      "type": "string",
                      "description": "ISO-3166-2; 2-6 letter code for a country subdivision",
                      "example": "PA"
                    },
                    {
                      "name": "latitude",
                      "kind": "optional",
                      "type": "number",
                      "description": "",
                      "example": 40.440624,
                      "modelRef": "#/components/schemas/Latitude",
                      "customType": "Latitude",
                      "schema": []
                    },
                    {
                      "name": "longitude",
                      "kind": "optional",
                      "type": "number",
                      "description": "",
                      "example": -79.995888,
                      "modelRef": "#/components/schemas/Longitude",
                      "customType": "Longitude",
                      "schema": []
                    },
                    {
                      "name": "postal_code",
                      "kind": "optional",
                      "type": "string",
                      "description": "ZIP Code™, ZIP+4, or postal code",
                      "example": "15206",
                      "modelRef": "#/components/schemas/PostalCode",
                      "customType": "PostalCode",
                      "schema": []
                    },
                    {
                      "name": "street_address",
                      "kind": "optional",
                      "type": "string",
                      "description": "Single or multi-line physical address\n",
                      "example": "7370 BAKER ST, STE 100\n"
                    }
                  ]
                }
              ]
            },
            {
              "name": "email",
              "kind": "optional",
              "type": "string",
              "description": "An email address for the location.",
              "example": "merchant.location@merchant.com",
              "modelRef": "#/components/schemas/MerchantLocationEmail",
              "customType": "MerchantLocationEmail",
              "schema": []
            },
            {
              "name": "external_id",
              "kind": "required",
              "type": "object",
              "description": "Partner-provided, external ID for a Merchant Location.\n\nExternal IDs should be **stable** and **never sensitive**.\n\nExternal IDs do not need to be globally unique, but we encourage\nthe use of UUIDs. They must be unique for the Merchant Location within\nthe scope of its parent Content Provider.\n\nTo protect against accidental inclusion of sensitive personal\ninformation, external IDs may not be 9-digit numbers or use the\nUS Tax ID format (###-##-####).\n",
              "modelRef": "#/components/schemas/MerchantLocationExternalId",
              "customType": "MerchantLocationExternalId",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "ExternalId",
                  "description": "",
                  "modelRef": "#/components/schemas/ExternalId",
                  "schema": []
                }
              ]
            },
            {
              "name": "is_online",
              "kind": "required",
              "type": "boolean",
              "description": "Indicates whether or not this is an online location.",
              "modelRef": "#/components/schemas/MerchantLocationIsOnline",
              "customType": "MerchantLocationIsOnline",
              "schema": []
            },
            {
              "name": "location_name",
              "kind": "optional",
              "type": "string",
              "description": "The name of the Merchant Location. If not specified, the Merchant\nname is used.\n",
              "modelRef": "#/components/schemas/MerchantLocationName",
              "customType": "MerchantLocationName",
              "schema": []
            },
            {
              "name": "location_website",
              "kind": "optional",
              "type": "string",
              "description": "A URL for the location or online offer. Required if 'is_online' is true\n",
              "example": "https://merchant-website.com",
              "modelRef": "#/components/schemas/MerchantLocationWebsite",
              "customType": "MerchantLocationWebsite",
              "schema": []
            },
            {
              "name": "parent_merchant_external_id",
              "kind": "required",
              "type": "object",
              "description": "Partner-provided, external ID for a Merchant Location.\n\nExternal IDs should be **stable** and **never sensitive**.\n\nExternal IDs do not need to be globally unique, but we encourage\nthe use of UUIDs. They must be unique for the Merchant Location within\nthe scope of its parent Content Provider.\n\nTo protect against accidental inclusion of sensitive personal\ninformation, external IDs may not be 9-digit numbers or use the\nUS Tax ID format (###-##-####).\n",
              "modelRef": "#/components/schemas/MerchantLocationExternalId",
              "customType": "MerchantLocationExternalId",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "ExternalId",
                  "description": "",
                  "modelRef": "#/components/schemas/ExternalId",
                  "schema": []
                }
              ]
            },
            {
              "name": "phone_number",
              "kind": "optional",
              "type": "string",
              "description": "A phone number for the location.",
              "modelRef": "#/components/schemas/MerchantLocationPhoneNumber",
              "customType": "MerchantLocationPhoneNumber",
              "schema": []
            },
            {
              "name": "processor_merchant_ids",
              "kind": "required",
              "type": "array",
              "description": "The Processor Merchant ID (MID) is an unique number used to identify\nthe business for credit and debit card payment processing.\n\nPhysical locations and online retailers may have multiple MIDs, even for the same\nprocessor network, usually for different departments or checkouts.\n",
              "modelRef": "#/components/schemas/ProcessorMerchantIds",
              "customType": "ProcessorMerchantIds",
              "schema": [
                {
                  "name": "mid",
                  "kind": "required",
                  "type": "string",
                  "description": "The Merchant ID (MID) value",
                  "example": "9000012345",
                  "modelRef": "#/components/schemas/ProcessorMIDValue",
                  "customType": "ProcessorMIDValue",
                  "schema": []
                },
                {
                  "name": "mid_type",
                  "kind": "required",
                  "type": "string",
                  "description": "The type of Merchant ID",
                  "example": "VISA_VMID",
                  "modelRef": "#/components/schemas/ProcessorMIDType",
                  "customType": "ProcessorMIDType",
                  "schema": []
                }
              ]
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Merchant Location",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "A specific, singular physical or online store for a particular Merchant.\nMerchant Locations should specify Processor Merchant IDs (MIDs) so that\nTransactions at those locations can be more accurately matched to\nOffers.\n",
            "customType": "MerchantLocation",
            "schema": [
              {
                "name": "address",
                "kind": "optional",
                "type": "object",
                "description": "A physical address in the world, with required fields.\n\ntriple uses address validation services to update and standardize\naddresses on our platform. Address data sent to the API may be updated\nas we process, validate, and normalize addresses.\n",
                "modelRef": "#/components/schemas/StrictAddress",
                "customType": "StrictAddress",
                "schema": [],
                "complexType": "allOf",
                "complexItems": [
                  {
                    "name": "Address",
                    "description": "",
                    "modelRef": "#/components/schemas/Address",
                    "schema": [
                      {
                        "name": "city",
                        "kind": "optional",
                        "type": "string",
                        "description": "Municipality or city name",
                        "example": "PITTSBURGH"
                      },
                      {
                        "name": "complete",
                        "kind": "optional",
                        "type": "string",
                        "description": "The complete delivery address, composed from the Address properties.\n",
                        "example": "7370 BAKER ST, STE 100\nPITTSBURGH, PA 15206",
                        "modelRef": "#/components/schemas/CompleteAddress",
                        "customType": "CompleteAddress",
                        "schema": []
                      },
                      {
                        "name": "country_code",
                        "kind": "optional",
                        "type": "string",
                        "description": "2-letter ISO-3166 country code",
                        "example": "US",
                        "modelRef": "#/components/schemas/CountryCode",
                        "customType": "CountryCode",
                        "schema": []
                      },
                      {
                        "name": "country_subdivision_code",
                        "kind": "optional",
                        "type": "string",
                        "description": "ISO-3166-2; 2-6 letter code for a country subdivision",
                        "example": "PA"
                      },
                      {
                        "name": "latitude",
                        "kind": "optional",
                        "type": "number",
                        "description": "",
                        "example": 40.440624,
                        "modelRef": "#/components/schemas/Latitude",
                        "customType": "Latitude",
                        "schema": []
                      },
                      {
                        "name": "longitude",
                        "kind": "optional",
                        "type": "number",
                        "description": "",
                        "example": -79.995888,
                        "modelRef": "#/components/schemas/Longitude",
                        "customType": "Longitude",
                        "schema": []
                      },
                      {
                        "name": "postal_code",
                        "kind": "optional",
                        "type": "string",
                        "description": "ZIP Code™, ZIP+4, or postal code",
                        "example": "15206",
                        "modelRef": "#/components/schemas/PostalCode",
                        "customType": "PostalCode",
                        "schema": []
                      },
                      {
                        "name": "street_address",
                        "kind": "optional",
                        "type": "string",
                        "description": "Single or multi-line physical address\n",
                        "example": "7370 BAKER ST, STE 100\n"
                      }
                    ]
                  }
                ]
              },
              {
                "name": "created_at",
                "kind": "optional",
                "type": "string",
                "description": "RFC 3339 date time used for creation and mod times",
                "example": "2021-12-01T01:59:59.000Z",
                "modelRef": "#/components/schemas/Timestamp",
                "customType": "Timestamp",
                "schema": []
              },
              {
                "name": "email",
                "kind": "optional",
                "type": "string",
                "description": "An email address for the location.",
                "example": "merchant.location@merchant.com",
                "modelRef": "#/components/schemas/MerchantLocationEmail",
                "customType": "MerchantLocationEmail",
                "schema": []
              },
              {
                "name": "external_id",
                "kind": "required",
                "type": "object",
                "description": "Partner-provided, external ID for a Merchant Location.\n\nExternal IDs should be **stable** and **never sensitive**.\n\nExternal IDs do not need to be globally unique, but we encourage\nthe use of UUIDs. They must be unique for the Merchant Location within\nthe scope of its parent Content Provider.\n\nTo protect against accidental inclusion of sensitive personal\ninformation, external IDs may not be 9-digit numbers or use the\nUS Tax ID format (###-##-####).\n",
                "modelRef": "#/components/schemas/MerchantLocationExternalId",
                "customType": "MerchantLocationExternalId",
                "schema": [],
                "complexType": "allOf",
                "complexItems": [
                  {
                    "name": "ExternalId",
                    "description": "",
                    "modelRef": "#/components/schemas/ExternalId",
                    "schema": []
                  }
                ]
              },
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "The triple-defined ID for the entity.",
                "example": "triple-abc-123",
                "modelRef": "#/components/schemas/EntityId",
                "customType": "EntityId",
                "schema": []
              },
              {
                "name": "is_online",
                "kind": "required",
                "type": "boolean",
                "description": "Indicates whether or not this is an online location.",
                "modelRef": "#/components/schemas/MerchantLocationIsOnline",
                "customType": "MerchantLocationIsOnline",
                "schema": []
              },
              {
                "name": "location_name",
                "kind": "optional",
                "type": "string",
                "description": "The name of the Merchant Location. If not specified, the Merchant\nname is used.\n",
                "modelRef": "#/components/schemas/MerchantLocationName",
                "customType": "MerchantLocationName",
                "schema": []
              },
              {
                "name": "location_website",
                "kind": "optional",
                "type": "string",
                "description": "A URL for the location or online offer. Required if 'is_online' is true\n",
                "example": "https://merchant-website.com",
                "modelRef": "#/components/schemas/MerchantLocationWebsite",
                "customType": "MerchantLocationWebsite",
                "schema": []
              },
              {
                "name": "parent_merchant_external_id",
                "kind": "required",
                "type": "object",
                "description": "Partner-provided, external ID for a Merchant.\n\nExternal IDs should be **stable** and **never sensitive**.\n\nExternal IDs do not need to be globally unique, but we encourage\nthe use of UUIDs. They must be unique for the Merchant within\nthe scope of its parent Content Provider.\n\nTo protect against accidental inclusion of sensitive personal\ninformation, external IDs may not be 9-digit numbers or use the\nUS Tax ID format (###-##-####).\n",
                "modelRef": "#/components/schemas/MerchantExternalId",
                "customType": "MerchantExternalId",
                "schema": [],
                "complexType": "allOf",
                "complexItems": [
                  {
                    "name": "ExternalId",
                    "description": "",
                    "modelRef": "#/components/schemas/ExternalId",
                    "schema": []
                  }
                ]
              },
              {
                "name": "phone_number",
                "kind": "optional",
                "type": "string",
                "description": "A phone number for the location.",
                "modelRef": "#/components/schemas/MerchantLocationPhoneNumber",
                "customType": "MerchantLocationPhoneNumber",
                "schema": []
              },
              {
                "name": "processor_merchant_ids",
                "kind": "optional",
                "type": "array",
                "description": "The Processor Merchant ID (MID) is an unique number used to identify\nthe business for credit and debit card payment processing.\n\nPhysical locations and online retailers may have multiple MIDs, even for the same\nprocessor network, usually for different departments or checkouts.\n",
                "modelRef": "#/components/schemas/ProcessorMerchantIds",
                "customType": "ProcessorMerchantIds",
                "schema": [
                  {
                    "name": "mid",
                    "kind": "required",
                    "type": "string",
                    "description": "The Merchant ID (MID) value",
                    "example": "9000012345",
                    "modelRef": "#/components/schemas/ProcessorMIDValue",
                    "customType": "ProcessorMIDValue",
                    "schema": []
                  },
                  {
                    "name": "mid_type",
                    "kind": "required",
                    "type": "string",
                    "description": "The type of Merchant ID",
                    "example": "VISA_VMID",
                    "modelRef": "#/components/schemas/ProcessorMIDType",
                    "customType": "ProcessorMIDType",
                    "schema": []
                  }
                ]
              },
              {
                "name": "updated_at",
                "kind": "optional",
                "type": "string",
                "description": "RFC 3339 date time used for creation and mod times",
                "example": "2021-12-01T01:59:59.000Z",
                "modelRef": "#/components/schemas/Timestamp",
                "customType": "Timestamp",
                "schema": []
              }
            ],
            "modelRef": "#/components/schemas/MerchantLocation",
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "400",
        "description": "TripleBadRequestError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request is malformed."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleBadRequestError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "403",
        "description": "TripleNotAuthenticatedError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "Client authentication failed."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleNotAuthenticatedError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "404",
        "description": "TripleInvalidPathError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The url path or path parameter is invalid."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleInvalidPathError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "409",
        "description": "TripleIntegrityError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request was well-formed but violated entity integrity constraints."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleIntegrityError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "415",
        "description": "TripleUnsupportedMediaType",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request defined an unsupported media type."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleUnsupportedMediaType>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "422",
        "description": "TripleUnprocessableEntity",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request was well-formed but could not be processed."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleUnprocessableEntity>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "500",
        "description": "TripleInternalServerError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "Triple was unable to process the request due to an internal error."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleInternalServerError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "501",
        "description": "TripleNotImplementedError",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request failed because it requires a feature that is not yet implemented."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleNotImplementedError>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      },
      {
        "statusCode": "503",
        "description": "TripleServiceUnavailable",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "schema": [
              {
                "name": "status_code",
                "kind": "required",
                "type": "integer",
                "description": "The 3-digit HTTP Response Status code",
                "example": 0
              },
              {
                "name": "content",
                "kind": "required",
                "type": "object",
                "description": "The error response content.",
                "example": "",
                "schema": [
                  {
                    "name": "details",
                    "kind": "optional",
                    "type": "array",
                    "description": "An array of error detail",
                    "modelRef": "#/components/schemas/ErrorResponseDetails",
                    "customType": "ErrorResponseDetails",
                    "schema": []
                  },
                  {
                    "name": "error_message",
                    "kind": "required",
                    "type": "string",
                    "description": "Short description of what went wrong.",
                    "example": "",
                    "default": "The request failed due to a triple service interruption."
                  },
                  {
                    "name": "exception",
                    "kind": "required",
                    "type": "string<TripleServiceUnavailable>",
                    "description": "The exception type.",
                    "example": ""
                  }
                ]
              }
            ],
            "isExpanded": true
          }
        ]
      }
    ],
    "hasXCodeSamples": false,
    "examples": {
      "languages": [
        {
          "id": "example-0-curl",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request POST \\\n     --url https://api.sandbox.tripleup.dev/partner/merchant-locations \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"address\": {},\n     \"external_id\": {},\n     \"is_online\": \"\",\n     \"parent_merchant_external_id\": {},\n     \"processor_merchant_ids\": [\n     {\n     \"mid\": \"9000012345\",\n     \"mid_type\": \"VISA_VMID\"\n     }\n     ]\n     }'"
        },
        {
          "id": "example-1-javascript",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar raw = JSON.stringify({\n   \"address\": {},\n   \"external_id\": {},\n   \"is_online\": \"\",\n   \"parent_merchant_external_id\": {},\n   \"processor_merchant_ids\": [\n      {\n         \"mid\": \"9000012345\",\n         \"mid_type\": \"VISA_VMID\"\n      }\n   ]\n});\n\nvar requestOptions = {\n   method: 'POST',\n   headers: myHeaders,\n   body: raw,\n   redirect: 'follow'\n};\n\nfetch(\"https://api.sandbox.tripleup.dev/partner/merchant-locations\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "example-2-ruby",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.sandbox.tripleup.dev/partner/merchant-locations\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\nrequest.body = JSON.dump({\n   \"address\": {},\n   \"external_id\": {},\n   \"is_online\": \"\",\n   \"parent_merchant_external_id\": {},\n   \"processor_merchant_ids\": [\n      {\n         \"mid\": \"9000012345\",\n         \"mid_type\": \"VISA_VMID\"\n      }\n   ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "example-3-python",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://api.sandbox.tripleup.dev/partner/merchant-locations\"\n\npayload = json.dumps({\n   \"address\": {},\n   \"external_id\": {},\n   \"is_online\": \"\",\n   \"parent_merchant_external_id\": {},\n   \"processor_merchant_ids\": [\n      {\n         \"mid\": \"9000012345\",\n         \"mid_type\": \"VISA_VMID\"\n      }\n   ]\n})\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"POST\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "example-0-curl"
    },
    "results": {
      "languages": [
        {
          "id": "response-0-201",
          "language": "201",
          "code": "// Merchant Location\n{\n  \"address\": {},\n  \"created_at\": \"2021-12-01T01:59:59.000Z\",\n  \"email\": \"merchant.location@merchant.com\",\n  \"external_id\": {},\n  \"id\": \"triple-abc-123\",\n  \"is_online\": false,\n  \"location_name\": \"\",\n  \"location_website\": \"https://merchant-website.com\",\n  \"parent_merchant_external_id\": {},\n  \"phone_number\": \"\",\n  \"processor_merchant_ids\": [\n    {\n      \"mid\": \"9000012345\",\n      \"mid_type\": \"VISA_VMID\"\n    }\n  ],\n  \"updated_at\": \"2021-12-01T01:59:59.000Z\"\n}"
        },
        {
          "id": "response-1-400",
          "language": "400",
          "code": "// TripleBadRequestError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-2-403",
          "language": "403",
          "code": "// TripleNotAuthenticatedError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-3-404",
          "language": "404",
          "code": "// TripleInvalidPathError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-4-409",
          "language": "409",
          "code": "// TripleIntegrityError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-5-415",
          "language": "415",
          "code": "// TripleUnsupportedMediaType\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-6-422",
          "language": "422",
          "code": "// TripleUnprocessableEntity\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-7-500",
          "language": "500",
          "code": "// TripleInternalServerError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-8-501",
          "language": "501",
          "code": "// TripleNotImplementedError\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        },
        {
          "id": "response-9-503",
          "language": "503",
          "code": "// TripleServiceUnavailable\n{\n  \"status_code\": 0,\n  \"content\": {\n    \"details\": [\n      \"\"\n    ],\n    \"error_message\": \"\",\n    \"exception\": \"\"\n  }\n}"
        }
      ],
      "selectedLanguageId": "response-0-201"
    }
  },
  "children": [
    {
      "id": "okEaW1tInSrbC0BckfnJL",
      "type": "paragraph",
      "children": [
        {
          "text": "Creates a Merchant Location."
        }
      ]
    }
  ]
}