POST api/BusinessPartnerB2C
Recibe un jSon con los parametros necesarios para crear un socio de negocio en SAP B1.
Request Information
URI Parameters
None.
Body Parameters
BusinessPartnerName | Description | Type | Additional information |
---|---|---|---|
CardCode |
Identificador unico en SAP B1 para el socio de negocio. |
string |
Required |
CardName |
Nombre Asignado al socio de negocio en SAP B1. |
string |
Required |
CardType |
Tipo de socio de negocio, puede ser C "Custumer" ó S "Supplier". |
string |
Required String length: inclusive between 0 and 1 |
LicTrandNum |
NIT Correspondiente al socio de negocio. |
string |
Required |
GroupCode |
Numero que representa el grupo al que pertenece los socios de negocios. |
integer |
None. |
Correo electrónico de contacto del socio de negocio. |
string |
None. |
|
Phone |
Numero telefónico de contacto del socio de negocio. |
string |
None. |
addresses |
Lista de direcciones del socio de negocio. |
Collection of Address |
None. |
PymCode |
Código que representa el método de pago del socio de negocio. |
string |
None. |
ListNum |
Lista de precio por defecto del socio de negocio. |
string |
None. |
CreditLine |
Límite de crédito asignado al socio de negocio. |
string |
None. |
Disponible |
Límite de crédito asignado al socio de negocio. |
string |
None. |
Request Formats
application/json, text/json
{ "CardCode": "sample string 1", "CardName": "sample string 2", "CardType": "sample string 3", "LicTrandNum": "sample string 4", "GroupCode": 5, "Email": "sample string 6", "Phone": "sample string 7", "addresses": [ { "AddressName": "sample string 1", "Street": "sample string 2", "City": "sample string 3", "Country": "sample string 4", "CodMunicipio": "sample string 5", "State": "sample string 6" }, { "AddressName": "sample string 1", "Street": "sample string 2", "City": "sample string 3", "Country": "sample string 4", "CodMunicipio": "sample string 5", "State": "sample string 6" } ], "PymCode": "sample string 8", "ListNum": "sample string 9", "CreditLine": "sample string 10", "Disponible": "sample string 11" }
application/xml, text/xml
<BusinessPartner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API_GLOBAL.Models"> <CardCode>sample string 1</CardCode> <CardName>sample string 2</CardName> <CardType>sample string 3</CardType> <CreditLine>sample string 10</CreditLine> <Disponible>sample string 11</Disponible> <Email>sample string 6</Email> <GroupCode>5</GroupCode> <LicTrandNum>sample string 4</LicTrandNum> <ListNum>sample string 9</ListNum> <Phone>sample string 7</Phone> <PymCode>sample string 8</PymCode> <addresses> <Address> <AddressName>sample string 1</AddressName> <City>sample string 3</City> <CodMunicipio>sample string 5</CodMunicipio> <Country>sample string 4</Country> <State>sample string 6</State> <Street>sample string 2</Street> </Address> <Address> <AddressName>sample string 1</AddressName> <City>sample string 3</City> <CodMunicipio>sample string 5</CodMunicipio> <Country>sample string 4</Country> <State>sample string 6</State> <Street>sample string 2</Street> </Address> </addresses> </BusinessPartner>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |