Relative request path: | api/orgs/{organisationId}/countries/{countryId} |
Property | Description |
---|---|
organisationId | organisation id |
countryId | country id |
Request parameters:
Request parameters:
Request parameters:
Property | Description |
---|---|
CountryId | Country id. Mandatory. |
Code | Country code. Optional. Max length: 30. |
Name | Country name. Optional. Max length: 250. |
Currency | class Currency. Country currency. Optional. |
This method returns result of type 'SAOP.API.Models.Country.Country'.
/// Country details.
public class Country
{
// Country id.
// Mandatory field. Ignored on create request.
public long CountryId { get; set; }
// Country code.
// Max length: 30
public string Code { get; set; }
// Country name.
// Max length: 250
public string Name { get; set; }
// Country currency.
public mMApiFkField Currency { get; set; }
}
/// Link with id, name and url to related data.
public class mMApiFkField
{
// Record id.
public long? ID { get; set; }
// Record name.
public string Name { get; private set; }
// Url to full record details.
public string ResourceUrl { get; private set; }
}
This method returns result of type 'SAOP.API.Models.Country.Country'.
/// Country details.
class Country
{
// Country id.
// Mandatory field. Ignored on create request.
public $CountryId;
// Country code.
// Max length: 30
public $Code;
// Country name.
// Max length: 250
public $Name;
// Country currency.
public $Currency;
}
/// Link with id, name and url to related data.
class mMApiFkField
{
// Record id.
public $ID;
// Record name.
public $Name;
// Url to full record details.
public $ResourceUrl;
}
This method returns result of type 'SAOP.API.Models.Country.Country'.
/// Country details.
public class Country
{
// Country id.
// Mandatory field. Ignored on create request.
public Long CountryId;
// Country code.
// Max length: 30
public String Code;
// Country name.
// Max length: 250
public String Name;
// Country currency.
public mMApiFkField Currency;
}
/// Link with id, name and url to related data.
public class mMApiFkField
{
// Record id.
public Long ID;
// Record name.
public String Name;
// Url to full record details.
public String ResourceUrl;
}