---
updatedAt: 2026-03-02T11:36:56.000Z
agentTools:
  projectIndex: https://docs.labra.io/llms.txt
---

# Fetch subscription details for given subscription id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Labra Marketplace server API API",
    "description": "Merged specification for Labra Marketplace server API (1 endpoints)",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.labra.io/{cloud}_marketplace",
      "description": "Labra Marketplace server API"
    }
  ],
  "paths": {
    "/v1/partners/{partner_id}/subscriptions/{subscription_id}": {
      "get": {
        "description": "",
        "operationId": "get__v1_partners_{partner_id}_subscriptions_{subscription_id}",
        "parameters": [
          {
            "description": "",
            "in": "path",
            "name": "partner_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "",
            "in": "path",
            "name": "subscription_id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "description": "Bad Request"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Labra_API_ValidationError.6a07bef"
                }
              }
            },
            "description": "Unprocessable Content"
          },
          "500": {
            "description": "Internal Server Error"
          }
        },
        "summary": "Fetch subscription details for given contract_id :param partner_id: [UUID] labra partner id :param seller_id: [UUID] labra seller id :param subscription_id: [UUID] labra subscription id :returns response [dict]: Success or error response",
        "tags": [
          "subscriptions"
        ],
        "security": [
          {
            "Clientid": [],
            "Clientsecret": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Labra_API_GetOneSubscriptionResponse.52aa468": {
        "properties": {
          "buyer_details": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.BuyerDetails"
          },
          "cppo_details": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.CppoDetails"
          },
          "entitlements": {
            "items": {
              "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.Entitlement"
            },
            "title": "Entitlements",
            "type": "array"
          },
          "offer_details": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.OfferDetails"
          },
          "payment_schedule": {
            "items": {},
            "title": "Payment Schedule",
            "type": "array"
          },
          "product_details": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.ProductDetails"
          },
          "subscription": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.Subscription"
          }
        },
        "required": [
          "subscription",
          "entitlements",
          "buyer_details",
          "payment_schedule",
          "offer_details",
          "product_details",
          "cppo_details"
        ],
        "title": "GetOneSubscriptionResponse",
        "type": "object"
      },
      "Labra_API_ValidationError.6a07bef": {
        "description": "Model of a validation error response.",
        "items": {
          "$ref": "#/components/schemas/Labra_API_ValidationError.6a07bef.ValidationErrorElement"
        },
        "title": "ValidationError",
        "type": "array"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.BuyerDetails": {
        "properties": {
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "email": {
            "title": "Email",
            "type": "string"
          },
          "form_data": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Form Data"
          },
          "form_data_formatted": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Form Data Formatted"
          }
        },
        "required": [
          "email",
          "company_name"
        ],
        "title": "BuyerDetails",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.CppoDetails": {
        "properties": {
          "adjustment_percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Adjustment Percentage"
          },
          "aws_account_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Aws Account Id"
          },
          "cloud_offer_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Cloud Offer Id"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Company Name"
          },
          "created_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Created At"
          },
          "creation_origin": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Creation Origin"
          },
          "email_custom_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email Custom Message"
          },
          "eula_file": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eula File"
          },
          "eula_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eula Type"
          },
          "flexible_payment_terms": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Flexible Payment Terms"
          },
          "installment_info": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Installment Info"
          },
          "labra_offer_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Labra Offer Id"
          },
          "labra_resale_authorization_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Labra Resale Authorization Id"
          },
          "offer_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Offer Name"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Type"
          }
        },
        "title": "CppoDetails",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.Entitlement": {
        "properties": {
          "active_price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.AWS_PRODUCT_DIMENSIONS_PRICE_TYPES_ENUM"
              },
              {
                "type": "null"
              }
            ],
            "default": null
          },
          "crm_object_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Crm Object Id"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Currency"
          },
          "dimension_id": {
            "title": "Dimension Id",
            "type": "string"
          },
          "dimension_label": {
            "title": "Dimension Label",
            "type": "string"
          },
          "dimension_name": {
            "title": "Dimension Name",
            "type": "string"
          },
          "entitlement_id": {
            "title": "Entitlement Id",
            "type": "string"
          },
          "expiration_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Expiration Date"
          },
          "is_additional_usage_allowed": {
            "title": "Is Additional Usage Allowed",
            "type": "boolean"
          },
          "label_description": {
            "title": "Label Description",
            "type": "string"
          },
          "price": {
            "title": "Price",
            "type": "number"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Quantity"
          },
          "value": {
            "title": "Value",
            "type": "string"
          }
        },
        "required": [
          "value",
          "is_additional_usage_allowed",
          "dimension_id",
          "price",
          "dimension_label",
          "dimension_name",
          "label_description",
          "entitlement_id"
        ],
        "title": "Entitlement",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.OfferDetails": {
        "properties": {
          "aws_account_id": {
            "title": "Aws Account Id",
            "type": "string"
          },
          "cloud_offer_id": {
            "title": "Cloud Offer Id",
            "type": "string"
          },
          "company_name": {
            "title": "Company Name",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "email_custom_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Email Custom Message"
          },
          "eula_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Eula Type"
          },
          "flexible_payment_terms": {
            "title": "Flexible Payment Terms",
            "type": "boolean"
          },
          "labra_offer_id": {
            "title": "Labra Offer Id",
            "type": "string"
          },
          "offer_recipients": {
            "items": {
              "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.OfferRecipient"
            },
            "title": "Offer Recipients",
            "type": "array"
          },
          "offer_stakeholders": {
            "items": {
              "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.OfferStakeholder"
            },
            "title": "Offer Stakeholders",
            "type": "array"
          },
          "private_offer_name": {
            "title": "Private Offer Name",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "flexible_payment_terms",
          "labra_offer_id",
          "cloud_offer_id",
          "private_offer_name",
          "created_at",
          "type",
          "company_name",
          "offer_stakeholders",
          "offer_recipients",
          "aws_account_id"
        ],
        "title": "OfferDetails",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.ProductDetails": {
        "properties": {
          "dimension_category_name": {
            "title": "Dimension Category Name",
            "type": "string"
          },
          "labra_product_id": {
            "title": "Labra Product Id",
            "type": "string"
          },
          "labra_seller_id": {
            "title": "Labra Seller Id",
            "type": "string"
          },
          "product_code": {
            "title": "Product Code",
            "type": "string"
          },
          "product_name": {
            "title": "Product Name",
            "type": "string"
          },
          "product_type": {
            "title": "Product Type",
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.ProductStatus"
          }
        },
        "required": [
          "labra_product_id",
          "product_code",
          "dimension_category_name",
          "product_name",
          "product_type",
          "status",
          "labra_seller_id"
        ],
        "title": "ProductDetails",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.Subscription": {
        "properties": {
          "auto_renew": {
            "title": "Auto Renew",
            "type": "boolean"
          },
          "aws_agreement_id": {
            "title": "Aws Agreement Id",
            "type": "string"
          },
          "cloud_account_id": {
            "title": "Cloud Account Id",
            "type": "string"
          },
          "created_at": {
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "expiration_date": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Expiration Date"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "offer_type": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.OfferType"
          },
          "remaining_installement_amount": {
            "title": "Remaining Installement Amount",
            "type": "number"
          },
          "status": {
            "$ref": "#/components/schemas/Labra_API_GetOneSubscriptionResponse.52aa468.SubscriptionStatus"
          },
          "tcv": {
            "title": "Tcv",
            "type": "number"
          }
        },
        "required": [
          "id",
          "status",
          "offer_type",
          "created_at",
          "auto_renew",
          "cloud_account_id",
          "tcv",
          "aws_agreement_id",
          "remaining_installement_amount"
        ],
        "title": "Subscription",
        "type": "object"
      },
      "Labra_API_ValidationError.6a07bef.ValidationErrorElement": {
        "description": "Model of a validation error response element.",
        "properties": {
          "ctx": {
            "title": "Error context",
            "type": "object"
          },
          "loc": {
            "items": {
              "type": "string"
            },
            "title": "Missing field name",
            "type": "array"
          },
          "msg": {
            "title": "Error message",
            "type": "string"
          },
          "type": {
            "title": "Error type",
            "type": "string"
          }
        },
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationErrorElement",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.AWS_PRODUCT_DIMENSIONS_PRICE_TYPES_ENUM": {
        "description": "Enum for AWS product dimensions price types",
        "enum": [
          "price_1m",
          "price_12m",
          "price_24m",
          "price_36m",
          "additional_usage_price",
          "subscription_price"
        ],
        "title": "AWS_PRODUCT_DIMENSIONS_PRICE_TYPES_ENUM",
        "type": "string"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.OfferRecipient": {
        "properties": {
          "email": {
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "sent_at": {
            "format": "date-time",
            "title": "Sent At",
            "type": "string"
          },
          "title": {
            "title": "Title",
            "type": "string"
          }
        },
        "required": [
          "email",
          "title",
          "sent_at",
          "last_name",
          "first_name"
        ],
        "title": "OfferRecipient",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.OfferStakeholder": {
        "properties": {
          "email": {
            "title": "Email",
            "type": "string"
          },
          "first_name": {
            "title": "First Name",
            "type": "string"
          },
          "last_name": {
            "title": "Last Name",
            "type": "string"
          },
          "name": {
            "title": "Name",
            "type": "string"
          }
        },
        "required": [
          "name",
          "email",
          "last_name",
          "first_name"
        ],
        "title": "OfferStakeholder",
        "type": "object"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.ProductStatus": {
        "description": "Product status enumeration",
        "enum": [
          "Draft",
          "Limited",
          "In-progress",
          "Labra-testing",
          "AWS-testing",
          "Failed",
          "Public",
          "Rejected",
          "Restricted"
        ],
        "title": "ProductStatus",
        "type": "string"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.OfferType": {
        "description": "AWS Marketplace offer type enumeration",
        "enum": [
          "PUBLIC",
          "PRIVATE",
          "FREE-TRIAL",
          "CPPO"
        ],
        "title": "OfferType",
        "type": "string"
      },
      "Labra_API_GetOneSubscriptionResponse.52aa468.SubscriptionStatus": {
        "description": "AWS Marketplace subscription status enumeration",
        "enum": [
          "SUBSCRIPTION_PENDING",
          "SUBSCRIPTION_SUCCESS",
          "SUBSCRIPTION_FAIL",
          "UNSUBSCRIBE_PENDING",
          "UNSUBSCRIBE_SUCCESS"
        ],
        "title": "SubscriptionStatus",
        "type": "string"
      }
    },
    "securitySchemes": {
      "Clientid": {
        "type": "apiKey",
        "in": "header",
        "name": "X-client-id",
        "description": "X-client-id for authentication"
      },
      "Clientsecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-client-secret",
        "description": "X-client-secret for authentication"
      }
    }
  },
  "security": []
}
```