---
title: Create a Card Program
slug: mihai-tests/create-a-card-program
createdAt: 2025-05-02T10:16:35.482Z
---

{
  "id": "MBEdiN-wtIt5C3HdRu_as",
  "type": "api-oas-v2",
  "data": {
    "method": "POST",
    "url": "https://api.sandbox.tripleup.dev/partner/card-programs",
    "servers": [
      {
        "url": "https://api.sandbox.tripleup.dev/partner/card-programs",
        "description": "triple Sandbox"
      }
    ],
    "name": "Create a Card Program",
    "description": "<p>Creates a card program.</p>\n<p><code>default_country_code</code> may be set to the country associated with the\ncard program.  It defaults to US if it is not specified.</p>\n<p><code>default_postal_code</code> must be set to a postal code associated with the\ncard program (e.g. domicile, other).  The actual value is left to the\ndiscretion of the caller.</p>\n<p><em>NB:</em> The <code>default_postal_code</code> will be used in lieu of <code>proximity_target</code>\nif one is not specified during a CardAccount instance request for\nassociated offers.  If <code>default_postal_code</code> is not set for the card\naccount, the CardProgram <code>default_postal_code</code> for the program will be\nused instead.</p>",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [
        {
          "kind": "optional",
          "name": "body",
          "type": "object",
          "description": "",
          "schema": [
            {
              "name": "card_bins",
              "kind": "optional",
              "type": "array",
              "description": "The Bank Identification Numbers for cards in this Card Program.\n\nProviding these values helps triple validate Transactions during\nreward processing and enforce card requirements during purchases\nthrough Affiliate Offers.\n",
              "modelRef": "#/components/schemas/CardProgramCardBins",
              "customType": "CardProgramCardBins",
              "schema": []
            },
            {
              "name": "default_country_code",
              "kind": "optional",
              "type": "object",
              "description": "",
              "default": "US",
              "modelRef": "#/components/schemas/USDefaultedCountryCode",
              "customType": "USDefaultedCountryCode",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "CountryCode",
                  "description": "",
                  "modelRef": "#/components/schemas/CountryCode",
                  "schema": []
                }
              ]
            },
            {
              "name": "default_postal_code",
              "kind": "required",
              "type": "string",
              "description": "ZIP Code™, ZIP+4, or postal code",
              "example": "15206",
              "modelRef": "#/components/schemas/PostalCode",
              "customType": "PostalCode",
              "schema": []
            },
            {
              "name": "external_id",
              "kind": "required",
              "type": "object",
              "description": "Partner-provided, external ID for a Card Program.\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 Card Program within\nthe scope of its parent Publisher.\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/CardProgramExternalId",
              "customType": "CardProgramExternalId",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "ExternalId",
                  "description": "",
                  "modelRef": "#/components/schemas/ExternalId",
                  "schema": []
                }
              ]
            },
            {
              "name": "name",
              "kind": "required",
              "type": "string",
              "description": "Display name of the Card Program",
              "modelRef": "#/components/schemas/CardProgramName",
              "customType": "CardProgramName",
              "schema": []
            },
            {
              "name": "description",
              "kind": "optional",
              "type": "string",
              "description": "Description of the Card Program",
              "modelRef": "#/components/schemas/CardProgramDescription",
              "customType": "CardProgramDescription",
              "schema": []
            },
            {
              "name": "program_currency",
              "kind": "required",
              "type": "string",
              "description": "3-character ISO-4217 currency code. Only USD is currently supported.\n\nContact your Triple representative for support with additional\ncurrencies.  Note that some values are not supported, particularly\ntest and fund codes.\n",
              "example": "USD",
              "default": "USD",
              "modelRef": "#/components/schemas/CurrencyCode",
              "customType": "CurrencyCode",
              "schema": []
            },
            {
              "name": "loyalty_unit",
              "kind": "optional",
              "type": "string",
              "description": "The unit used to pay with loyalty. Currently only POINTS and MILES are supported.\n",
              "modelRef": "#/components/schemas/CardProgramLoyaltyUnit",
              "customType": "CardProgramLoyaltyUnit",
              "schema": []
            },
            {
              "name": "loyalty_conversion_rate",
              "kind": "optional",
              "type": "number",
              "description": "The rate of loyalty units earned per reward dollar earned.\n\nFor example, setting this to 100 would earn customers 100 loyalty miles\nfor every reward dollar earned.\n",
              "example": 100,
              "modelRef": "#/components/schemas/CardProgramLoyaltyConversionRate",
              "customType": "CardProgramLoyaltyConversionRate",
              "schema": []
            },
            {
              "name": "publisher_external_id",
              "kind": "optional",
              "type": "object",
              "description": "Partner-provided, external ID for a Publisher.\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 Publisher within\nthe scope of its parent Portfolio Manager.\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/PublisherExternalId",
              "customType": "PublisherExternalId",
              "schema": [],
              "complexType": "allOf",
              "complexItems": [
                {
                  "name": "ExternalId",
                  "description": "",
                  "modelRef": "#/components/schemas/ExternalId",
                  "schema": []
                }
              ]
            }
          ],
          "isExpanded": true
        }
      ],
      "formDataParameters": [],
      "oAuthParameters": []
    },
    "responses": [
      {
        "statusCode": "201",
        "description": "Card Program",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "object",
            "description": "",
            "customType": "CardProgram",
            "schema": [
              {
                "name": "card_bins",
                "kind": "optional",
                "type": "array",
                "description": "The Bank Identification Numbers for cards in this Card Program.\n\nProviding these values helps triple validate Transactions during\nreward processing and enforce card requirements during purchases\nthrough Affiliate Offers.\n",
                "modelRef": "#/components/schemas/CardProgramCardBins",
                "customType": "CardProgramCardBins",
                "schema": []
              },
              {
                "name": "created_at",
                "kind": "required",
                "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": "default_country_code",
                "kind": "optional",
                "type": "object",
                "description": "",
                "default": "US",
                "modelRef": "#/components/schemas/USDefaultedCountryCode",
                "customType": "USDefaultedCountryCode",
                "schema": [],
                "complexType": "allOf",
                "complexItems": [
                  {
                    "name": "CountryCode",
                    "description": "",
                    "modelRef": "#/components/schemas/CountryCode",
                    "schema": []
                  }
                ]
              },
              {
                "name": "default_postal_code",
                "kind": "required",
                "type": "string",
                "description": "ZIP Code™, ZIP+4, or postal code",
                "example": "15206",
                "modelRef": "#/components/schemas/PostalCode",
                "customType": "PostalCode",
                "schema": []
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "description": "Description of the Card Program",
                "modelRef": "#/components/schemas/CardProgramDescription",
                "customType": "CardProgramDescription",
                "schema": []
              },
              {
                "name": "external_id",
                "kind": "required",
                "type": "object",
                "description": "Partner-provided, external ID for a Card Program.\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 Card Program within\nthe scope of its parent Publisher.\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/CardProgramExternalId",
                "customType": "CardProgramExternalId",
                "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": "loyalty_unit",
                "kind": "optional",
                "type": "string",
                "description": "The unit used to pay with loyalty. Currently only POINTS and MILES are supported.\n",
                "modelRef": "#/components/schemas/CardProgramLoyaltyUnit",
                "customType": "CardProgramLoyaltyUnit",
                "schema": []
              },
              {
                "name": "loyalty_conversion_rate",
                "kind": "optional",
                "type": "number",
                "description": "The rate of loyalty units earned per reward dollar earned.\n\nFor example, setting this to 100 would earn customers 100 loyalty miles\nfor every reward dollar earned.\n",
                "example": 100,
                "modelRef": "#/components/schemas/CardProgramLoyaltyConversionRate",
                "customType": "CardProgramLoyaltyConversionRate",
                "schema": []
              },
              {
                "name": "name",
                "kind": "required",
                "type": "string",
                "description": "Display name of the Card Program",
                "modelRef": "#/components/schemas/CardProgramName",
                "customType": "CardProgramName",
                "schema": []
              },
              {
                "name": "program_currency",
                "kind": "required",
                "type": "string",
                "description": "3-character ISO-4217 currency code. Only USD is currently supported.\n\nContact your Triple representative for support with additional\ncurrencies.  Note that some values are not supported, particularly\ntest and fund codes.\n",
                "example": "USD",
                "default": "USD",
                "modelRef": "#/components/schemas/CurrencyCode",
                "customType": "CurrencyCode",
                "schema": []
              },
              {
                "name": "publisher_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": "updated_at",
                "kind": "required",
                "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/CardProgram",
            "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/card-programs \\\n     --header 'accept: application/json' \\\n     --header 'content-type: application/json' \\\n     --data '{\n     \"default_country_code\": {},\n     \"default_postal_code\": \"15206\",\n     \"external_id\": {},\n     \"name\": \"\",\n     \"program_currency\": \"USD\",\n     \"publisher_external_id\": {}\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   \"default_country_code\": {},\n   \"default_postal_code\": \"15206\",\n   \"external_id\": {},\n   \"name\": \"\",\n   \"program_currency\": \"USD\",\n   \"publisher_external_id\": {}\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/card-programs\", 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/card-programs\")\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   \"default_country_code\": {},\n   \"default_postal_code\": \"15206\",\n   \"external_id\": {},\n   \"name\": \"\",\n   \"program_currency\": \"USD\",\n   \"publisher_external_id\": {}\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/card-programs\"\n\npayload = json.dumps({\n   \"default_country_code\": {},\n   \"default_postal_code\": \"15206\",\n   \"external_id\": {},\n   \"name\": \"\",\n   \"program_currency\": \"USD\",\n   \"publisher_external_id\": {}\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": "// Card Program\n{\n  \"card_bins\": [\n    \"\"\n  ],\n  \"created_at\": \"2021-12-01T01:59:59.000Z\",\n  \"default_country_code\": {},\n  \"default_postal_code\": \"15206\",\n  \"description\": \"\",\n  \"external_id\": {},\n  \"id\": \"triple-abc-123\",\n  \"loyalty_unit\": \"\",\n  \"loyalty_conversion_rate\": 100,\n  \"name\": \"\",\n  \"program_currency\": \"USD\",\n  \"publisher_id\": \"triple-abc-123\",\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": "yl12sja1mqSOBmMnCZPjb",
      "type": "paragraph",
      "children": [
        {
          "text": "Creates a card program."
        }
      ]
    },
    {
      "id": "KvqXQtlWBAftetaVC3PMp",
      "type": "paragraph",
      "children": [
        {
          "text": "default_country_code",
          "highlight": true
        },
        {
          "text": " may be set to the country associated with the\ncard program.  It defaults to US if it is not specified."
        }
      ]
    },
    {
      "id": "ZfJ7h6IWLD4V1_DCi0V_5",
      "type": "paragraph",
      "children": [
        {
          "text": "default_postal_code",
          "highlight": true
        },
        {
          "text": " must be set to a postal code associated with the\ncard program (e.g. domicile, other).  The actual value is left to the\ndiscretion of the caller."
        }
      ]
    },
    {
      "id": "VSsfAGyCUZ1SkegyzJBz0",
      "type": "paragraph",
      "children": [
        {
          "text": "NB:",
          "italic": true
        },
        {
          "text": " The "
        },
        {
          "text": "default_postal_code",
          "highlight": true
        },
        {
          "text": " will be used in lieu of "
        },
        {
          "text": "proximity_target",
          "highlight": true
        },
        {
          "text": "\nif one is not specified during a CardAccount instance request for\nassociated offers.  If "
        },
        {
          "text": "default_postal_code",
          "highlight": true
        },
        {
          "text": " is not set for the card\naccount, the CardProgram "
        },
        {
          "text": "default_postal_code",
          "highlight": true
        },
        {
          "text": " for the program will be\nused instead."
        }
      ]
    }
  ]
}