POST api/GoldTypes

Request Information

URI Parameters

None.

Body Parameters

GoldType
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

BuildGolds

Collection of BuildGold

None.

Buys

Collection of Buy

None.

Platings

Collection of Plating

None.

Repaires

Collection of Repaire

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "BuildGolds": [
    {
      "$id": "2",
      "ID": 1,
      "CustomerID": 2,
      "GoldTypeID": 3,
      "GoldModelID": 4,
      "Cutie": 5,
      "Weight": 6.1,
      "Wage": 7.1,
      "Benefit": 8.1,
      "AmountPerUnit": 9.1,
      "Amount": 10.0,
      "Description": "sample string 11",
      "Count": 12,
      "ReceiptAmount": 1.0,
      "ReceiptGold": 1.0,
      "ReceiptDate": "2026-01-01T04:07:52.997411+03:30",
      "Date": "2026-01-01T04:07:52.997411+03:30",
      "Customer": {
        "$id": "3",
        "ID": 1,
        "Name": "sample string 2",
        "Family": "sample string 3",
        "TelNumber": "sample string 4",
        "MobileNumber": "sample string 5",
        "Address": "sample string 6",
        "Date": "2026-01-01T04:07:52.997411+03:30",
        "BuildGolds": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ],
        "Fusions": [
          {
            "$id": "4",
            "ID": 1,
            "CustomerID": 2,
            "FusionAmount": 3.1,
            "RayAmount": 1.1,
            "Weight": 4.0,
            "TotalAmount": 5.0,
            "RayNumber": "sample string 6",
            "isWithDevice": true,
            "ReceiptAmount": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.997411+03:30",
            "Date": "2026-01-01T04:07:52.997411+03:30",
            "Customer": {
              "$ref": "3"
            }
          },
          {
            "$ref": "4"
          }
        ],
        "Platings": [
          {
            "$id": "5",
            "ID": 1,
            "GoldType": 2,
            "PlatingType": 3,
            "CustomerID": 4,
            "Weight": 5.0,
            "Amount": 6.0,
            "Description": "sample string 7",
            "ReceiptAmount": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.997411+03:30",
            "Date": "2026-01-01T04:07:52.997411+03:30",
            "Customer": {
              "$ref": "3"
            },
            "GoldType1": {
              "$ref": "1"
            },
            "PlatingType1": {
              "$id": "6",
              "ID": 1,
              "Name": "sample string 2",
              "Platings": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            }
          },
          {
            "$ref": "5"
          }
        ],
        "Receives": [
          {
            "$id": "7",
            "ID": 1,
            "CustomerID": 2,
            "TotalAmountDebt": 3.0,
            "TotalGoldDebt": 4.0,
            "AmountReceived": 5.0,
            "GoldReceived": 6.0,
            "Date": "2026-01-01T04:07:52.997411+03:30",
            "Type": 64,
            "Customer": {
              "$ref": "3"
            },
            "ReceiveDetails": [
              {
                "$id": "8",
                "ID": 1,
                "ReceiveID": 2,
                "Type": 3,
                "TableID": 4,
                "Amount": 5.0,
                "Gold": 6.0,
                "CreateDate": "2026-01-01T04:07:52.997411+03:30",
                "CreateUserID": 8,
                "UpdateDate": "2026-01-01T04:07:52.997411+03:30",
                "UpdateUserID": 1,
                "Ver": 9,
                "Receive": {
                  "$ref": "7"
                }
              },
              {
                "$ref": "8"
              }
            ]
          },
          {
            "$ref": "7"
          }
        ],
        "Repaires": [
          {
            "$id": "9",
            "ID": 1,
            "GoldType": 2,
            "PersonID": 3,
            "AddedGold": 1.0,
            "NumberGoldenBoiling": 1,
            "PricePerBoilling": 1.1,
            "Wage": 1.0,
            "Benefit": 1.1,
            "PricePerGram": 1.1,
            "AmountOfAddedGold": 1.0,
            "GoldDeficit": 1.0,
            "AmountOfGoldDeficit": 1.0,
            "BuyPricePerGram": 1.1,
            "ReceiptAmount": 1.0,
            "ReceiptGold": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.997411+03:30",
            "Date": "2026-01-01T04:07:52.997411+03:30",
            "Customer": {
              "$ref": "3"
            },
            "GoldType1": {
              "$ref": "1"
            }
          },
          {
            "$ref": "9"
          }
        ]
      },
      "GoldModel": {
        "$id": "10",
        "ID": 1,
        "GoldTypeID": 2,
        "Name": "sample string 3",
        "Wage": 1.1,
        "BuildGolds": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ]
      },
      "GoldType": {
        "$ref": "1"
      }
    },
    {
      "$ref": "2"
    }
  ],
  "Buys": [
    {
      "$id": "11",
      "ID": 1,
      "GoldType": 2,
      "Cutie": 3,
      "Weight": 4.1,
      "AmountPerGeram": 5.1,
      "Amount": 6.0,
      "Description": "sample string 7",
      "Date": "2026-01-01T04:07:52.997411+03:30",
      "GoldType1": {
        "$ref": "1"
      }
    },
    {
      "$ref": "11"
    }
  ],
  "Platings": [
    {
      "$ref": "5"
    },
    {
      "$ref": "5"
    }
  ],
  "Repaires": [
    {
      "$ref": "9"
    },
    {
      "$ref": "9"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

GoldType
NameDescriptionTypeAdditional information
ID

integer

None.

Name

string

None.

BuildGolds

Collection of BuildGold

None.

Buys

Collection of Buy

None.

Platings

Collection of Plating

None.

Repaires

Collection of Repaire

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "Name": "sample string 2",
  "BuildGolds": [
    {
      "$id": "2",
      "ID": 1,
      "CustomerID": 2,
      "GoldTypeID": 3,
      "GoldModelID": 4,
      "Cutie": 5,
      "Weight": 6.1,
      "Wage": 7.1,
      "Benefit": 8.1,
      "AmountPerUnit": 9.1,
      "Amount": 10.0,
      "Description": "sample string 11",
      "Count": 12,
      "ReceiptAmount": 1.0,
      "ReceiptGold": 1.0,
      "ReceiptDate": "2026-01-01T04:07:52.9994103+03:30",
      "Date": "2026-01-01T04:07:52.9994103+03:30",
      "Customer": {
        "$id": "3",
        "ID": 1,
        "Name": "sample string 2",
        "Family": "sample string 3",
        "TelNumber": "sample string 4",
        "MobileNumber": "sample string 5",
        "Address": "sample string 6",
        "Date": "2026-01-01T04:07:52.9994103+03:30",
        "BuildGolds": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ],
        "Fusions": [
          {
            "$id": "4",
            "ID": 1,
            "CustomerID": 2,
            "FusionAmount": 3.1,
            "RayAmount": 1.1,
            "Weight": 4.0,
            "TotalAmount": 5.0,
            "RayNumber": "sample string 6",
            "isWithDevice": true,
            "ReceiptAmount": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.9994103+03:30",
            "Date": "2026-01-01T04:07:52.9994103+03:30",
            "Customer": {
              "$ref": "3"
            }
          },
          {
            "$ref": "4"
          }
        ],
        "Platings": [
          {
            "$id": "5",
            "ID": 1,
            "GoldType": 2,
            "PlatingType": 3,
            "CustomerID": 4,
            "Weight": 5.0,
            "Amount": 6.0,
            "Description": "sample string 7",
            "ReceiptAmount": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.9994103+03:30",
            "Date": "2026-01-01T04:07:52.9994103+03:30",
            "Customer": {
              "$ref": "3"
            },
            "GoldType1": {
              "$ref": "1"
            },
            "PlatingType1": {
              "$id": "6",
              "ID": 1,
              "Name": "sample string 2",
              "Platings": [
                {
                  "$ref": "5"
                },
                {
                  "$ref": "5"
                }
              ]
            }
          },
          {
            "$ref": "5"
          }
        ],
        "Receives": [
          {
            "$id": "7",
            "ID": 1,
            "CustomerID": 2,
            "TotalAmountDebt": 3.0,
            "TotalGoldDebt": 4.0,
            "AmountReceived": 5.0,
            "GoldReceived": 6.0,
            "Date": "2026-01-01T04:07:52.9994103+03:30",
            "Type": 64,
            "Customer": {
              "$ref": "3"
            },
            "ReceiveDetails": [
              {
                "$id": "8",
                "ID": 1,
                "ReceiveID": 2,
                "Type": 3,
                "TableID": 4,
                "Amount": 5.0,
                "Gold": 6.0,
                "CreateDate": "2026-01-01T04:07:52.9994103+03:30",
                "CreateUserID": 8,
                "UpdateDate": "2026-01-01T04:07:52.9994103+03:30",
                "UpdateUserID": 1,
                "Ver": 9,
                "Receive": {
                  "$ref": "7"
                }
              },
              {
                "$ref": "8"
              }
            ]
          },
          {
            "$ref": "7"
          }
        ],
        "Repaires": [
          {
            "$id": "9",
            "ID": 1,
            "GoldType": 2,
            "PersonID": 3,
            "AddedGold": 1.0,
            "NumberGoldenBoiling": 1,
            "PricePerBoilling": 1.1,
            "Wage": 1.0,
            "Benefit": 1.1,
            "PricePerGram": 1.1,
            "AmountOfAddedGold": 1.0,
            "GoldDeficit": 1.0,
            "AmountOfGoldDeficit": 1.0,
            "BuyPricePerGram": 1.1,
            "ReceiptAmount": 1.0,
            "ReceiptGold": 1.0,
            "ReceiptDate": "2026-01-01T04:07:52.9994103+03:30",
            "Date": "2026-01-01T04:07:52.9994103+03:30",
            "Customer": {
              "$ref": "3"
            },
            "GoldType1": {
              "$ref": "1"
            }
          },
          {
            "$ref": "9"
          }
        ]
      },
      "GoldModel": {
        "$id": "10",
        "ID": 1,
        "GoldTypeID": 2,
        "Name": "sample string 3",
        "Wage": 1.1,
        "BuildGolds": [
          {
            "$ref": "2"
          },
          {
            "$ref": "2"
          }
        ]
      },
      "GoldType": {
        "$ref": "1"
      }
    },
    {
      "$ref": "2"
    }
  ],
  "Buys": [
    {
      "$id": "11",
      "ID": 1,
      "GoldType": 2,
      "Cutie": 3,
      "Weight": 4.1,
      "AmountPerGeram": 5.1,
      "Amount": 6.0,
      "Description": "sample string 7",
      "Date": "2026-01-01T04:07:52.9994103+03:30",
      "GoldType1": {
        "$ref": "1"
      }
    },
    {
      "$ref": "11"
    }
  ],
  "Platings": [
    {
      "$ref": "5"
    },
    {
      "$ref": "5"
    }
  ],
  "Repaires": [
    {
      "$ref": "9"
    },
    {
      "$ref": "9"
    }
  ]
}