---
updatedAt: 2025-03-10T14:02:42.000Z
agentTools:
  projectIndex: https://docs.umbrellacost.io/llms.txt
---

# Get Credits

The call is used to retrieve credits by an MSP

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Resellers",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.umbrellacost.io"
    }
  ],
  "x-readme": {
    "explorer-enabled": false
  },
  "paths": {
    "/api/v1/divisions/customers/aws/credit": {
      "get": {
        "description": "The call is used to retrieve credits by an MSP",
        "summary": "Get Credits",
        "tags": [
          "MSP Credits"
        ],
        "operationId": "get_apiv1divisionscustomersawscredit",
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": ""
                    },
                    "name": {
                      "type": "string",
                      "description": ""
                    },
                    "description": {
                      "type": "string",
                      "description": ""
                    },
                    "accountId": {
                      "type": "string",
                      "description": ""
                    },
                    "divisionName": {
                      "type": "string",
                      "description": ""
                    },
                    "amount": {
                      "type": "integer",
                      "description": ""
                    },
                    "monthlyAmountLimit": {
                      "type": "integer",
                      "description": ""
                    },
                    "amountUsed": {
                      "type": "integer",
                      "description": ""
                    },
                    "startDate": {
                      "type": "string",
                      "description": ""
                    },
                    "expirationDate": {
                      "type": "string",
                      "description": ""
                    },
                    "dedicatedParams": {
                      "type": "string",
                      "description": ""
                    },
                    "isExcludeAwsMarketplace": {
                      "type": "boolean",
                      "description": ""
                    },
                    "service": {
                      "type": "object",
                      "description": ""
                    }
                  }
                },
                "examples": {
                  "newExample": {
                    "summary": "Response Example",
                    "value": [
                      {
                        "id": "48956495_DIVISION-NAME",
                        "name": "Test Credit",
                        "description": null,
                        "accountId": "123456789012",
                        "divisionName": "DIVISION-NAME",
                        "amount": 1000,
                        "monthlyAmountLimit": 100,
                        "amountUsed": 300,
                        "startDate": "2023-01",
                        "expirationDate": "2023-03",
                        "dedicatedParams": "[{\"type\":\"awsMarketplace\",\"relation\":\"exclude\",\"values\":[\"AWS Marketplace\"]}]",
                        "isExcludeAwsMarketplace": true,
                        "service": {
                          "relation": "include",
                          "values": "all"
                        }
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "apikey",
            "in": "header",
            "required": true,
            "description": "",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "x-readme": {
          "code-samples": [
            {
              "code": "curl --location --request GET 'https://api.umbrellacost.io/api/v1/divisions/customers/aws/credit' \\\n--header 'apikey: {{account-api-key}}' \\\n--header 'Authorization: {{bearer-token}}'",
              "language": "shell",
              "name": ""
            }
          ],
          "samples-languages": [
            "shell"
          ]
        }
      }
    }
  }
}
```