{
  "id": "Agreement",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "constant": "agreement"
    },
    "id": {
      "type": "string"
    },
    "attributes": {
      "type": "object",
      "properties": {
        "owner": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "payer": {
          "type": "object",
          "properties": {
            "payment_method": {
              "type": "string"
            },
            "status": {
              "type": "string"
            },
            "payer_info": {
              "type": "object"
            }
          }
        },
        "plan": {
          "type": "string"
        },
        "links": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "start_date": {
          "type": "string"
        },
        "agreement_details": {
          "type": "object",
          "properties": {
            "outstanding_balance": {
              "type": "object"
            },
            "cycles_remaining": {
              "type": "string"
            },
            "cycles_completed": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}