{
  "info": {
    "_postman_id": "0e1c8b89-9336-406a-98c5-6340f1cdc5f9",
    "name": "billing-api Accounts Create API",
    "description": "The Billing API is for advanced Publishers and Brands. It allows you to programmatically view and ingest economic data related to transactions that you have driven (Publishers) or received (Brands).",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:25:48.000Z",
    "updatedAt": "2026-07-28T03:25:48.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-0e1c8b89-9336-406a-98c5-6340f1cdc5f9"
  },
  "item": [
    {
      "name": "create",
      "item": [
        {
          "name": "Generate a Button Shortlink for an Amazon URL",
          "id": "37010d04-8f16-47cd-92a9-0519d91e0a0f",
          "protocolProfileBehavior": {
            "disableBodyPruning": true
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"link_url\": \"<string>\",\n  \"btn_pub_user\": \"<string>\",\n  \"btn_pub_ref\": \"<string>\"\n}",
              "options": {
                "raw": {
                  "headerFamily": "json",
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "{{baseUrl}}/create",
              "host": [
                "{{baseUrl}}"
              ],
              "path": [
                "create"
              ]
            },
            "description": "Generate and return a Button-templated shortlink that redirects to an Amazon page. This link can then be used by a Creator to link an Amazon product and make attributed purchases.\n\nNOTE: Please reach out to your Button representative after configuring this on your end, as we will need to add your organization to an allowlist to fully enable functionality."
          },
          "response": [
            {
              "id": "94e5fca8-33a9-4d6e-ad24-08b2f1b09908",
              "name": "200",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"link_url\": \"<string>\",\n  \"btn_pub_user\": \"<string>\",\n  \"btn_pub_ref\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/create",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "create"
                  ]
                }
              },
              "status": "OK",
              "code": 200,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"meta\": {\n    \"status\": \"<string>\"\n  },\n  \"object\": {\n    \"short_url\": \"<string>\",\n    \"url\": \"<string>\"\n  }\n}",
              "createdAt": "2026-07-28T03:25:49.000Z",
              "updatedAt": "2026-07-28T03:25:49.000Z",
              "uid": "35240-94e5fca8-33a9-4d6e-ad24-08b2f1b09908"
            },
            {
              "id": "7f68972d-ea5b-4cfc-8f1d-9a18fb9044c5",
              "name": "401",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"link_url\": \"<string>\",\n  \"btn_pub_user\": \"<string>\",\n  \"btn_pub_ref\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/create",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "create"
                  ]
                }
              },
              "status": "Unauthorized",
              "code": 401,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"meta\": {\n    \"status\": \"<string>\"\n  },\n  \"error\": {\n    \"message\": \"<string>\"\n  }\n}",
              "createdAt": "2026-07-28T03:25:49.000Z",
              "updatedAt": "2026-07-28T03:25:49.000Z",
              "uid": "35240-7f68972d-ea5b-4cfc-8f1d-9a18fb9044c5"
            },
            {
              "id": "066b684b-ffc5-403c-843d-e1ed644763bc",
              "name": "404",
              "originalRequest": {
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  },
                  {
                    "description": "Added as a part of security scheme: basic",
                    "key": "Authorization",
                    "value": "Basic <credentials>"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"link_url\": \"<string>\",\n  \"btn_pub_user\": \"<string>\",\n  \"btn_pub_ref\": \"<string>\"\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/create",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "create"
                  ]
                }
              },
              "status": "Not Found",
              "code": 404,
              "_postman_previewlanguage": "json",
              "header": [
                {
                  "key": "Content-Type",
                  "value": "application/json"
                }
              ],
              "cookie": [],
              "responseTime": null,
              "body": "{\n  \"examples\": {\n    \"Result\": {\n      \"value\": \"{\\n    \\\"meta\\\": {\\n        \\\"status\\\": \\\"error\\\"\\n    },\\n    \\\"error\\\": {\\n        \\\"message\\\": \\\"could not create shortlink\\\"\\n    }\\n}\"\n    }\n  }\n}",
              "createdAt": "2026-07-28T03:25:49.000Z",
              "updatedAt": "2026-07-28T03:25:49.000Z",
              "uid": "35240-066b684b-ffc5-403c-843d-e1ed644763bc"
            }
          ],
          "createdAt": "2026-07-28T03:25:49.000Z",
          "updatedAt": "2026-07-28T03:25:49.000Z",
          "uid": "35240-37010d04-8f16-47cd-92a9-0519d91e0a0f"
        }
      ],
      "id": "77d3a93f-49ef-4911-b712-8a1c0b5c47bb",
      "createdAt": "2026-07-28T03:25:49.000Z",
      "updatedAt": "2026-07-28T03:25:49.000Z",
      "uid": "35240-77d3a93f-49ef-4911-b712-8a1c0b5c47bb"
    }
  ],
  "auth": {
    "type": "basic",
    "basic": [
      {
        "key": "username",
        "value": "{{basicAuthUsername}}",
        "type": "string"
      },
      {
        "key": "password",
        "value": "{{basicAuthPassword}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://api.usebutton.com/v1/affiliation"
    }
  ]
}