| POST | /Common/Producer |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Producer | body | Producer | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ProducerID | form | string | No | |
| ProducerName | form | string | No | |
| CountryId | form | string | No | |
| LOwn | form | bool | No | |
| Speend | form | bool | No | |
| ProducerNameEnglish | form | string | No | |
| Address | form | string | No | |
| PostalCode | form | string | No | |
| Phone | form | string | No | |
| Fax | form | string | No | |
| Person | form | string | No | |
| form | string | No | ||
| Ldefault | form | bool | No | |
| MrgId | form | int? | No | |
| Country | form | Country | No | |
| ProducerCountry | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| CountryId | form | string | No | Country id |
| CountryNe | form | string | No | Name (Eng) |
| LDefault | form | bool | No | Default Country for Use |
| Spend | form | bool? | No | Record for Use - 0 ; Record Blocked for Use - 1 |
| CountryNu | form | string | No | Name (Geo Unicode) |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No | |
| NewPPCatId | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Common/Producer HTTP/1.1
Host: 10.10.0.107
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Producer:
{
ProducerID: String,
ProducerName: String,
CountryId: String,
LOwn: False,
Speend: False,
ProducerNameEnglish: String,
Address: String,
PostalCode: String,
Phone: String,
Fax: String,
Person: String,
Email: String,
Ldefault: False,
MrgId: 0,
Country:
{
CountryId: String,
CountryNe: String,
LDefault: False,
Spend: False,
CountryNu: String
},
ProducerCountry: String
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
NewPPCatId: String
}