Sold-To details
Get Sold-To account details.
URL
/cnbs/v1/customers/id/sold_to
Method(s)
GET | POST
Parameters
Required
- Customer Number (customer_number)
- Sold-To customer number
Optional
- Sales Area (sales_area_data)
- Sales Organization (sales_organization)
- Distribution Channel (distribution_channel)
- Division (division)
Example POST
JSON Payload:
{
"customer_number": "3000",
"sales_area_data": {
"sales_organization": "3000",
"distribution_channel": "10",
"division": "00"
}
}
cURL
curl -X POST "https://<<your.server.here>>/cnbs/v1/customers/id/sold_to?sap-client=800&sap-language=EN&apiid=CNBSMV01P" -H "accept: application/json" -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI=" -d "{ \"customer_number\": \"3000\", \"sales_area_data\": { \"sales_organization\": \"3000\", \"distribution_channel\": \"10\", \"division\": \"00\" }}"
Example GET
cURL
curl -X GET "https://<<your.server.here>>/cnbs/v1/customers/id/sold_to?sap-client=800&sap-language=EN&apiid=CNBSMV01R&customer_number=3000&sales_organization=3000&distribution_channel=10&division=00" -H "accept: application/json" -H "content-type: application/json" -H "cnbssysid: gPuM1VyY1dxlTE2MEs2yajJUkX3/4+2Pw1alRw4BOtI="
Response
- Detail (detail)
- Address data (address_data)
- Name (name)
- Name 2 (name_2)
- Name 3 (name_3)
- Name 4 (name_4)
- City (city)
- District (district)
- Street (street)
- Postal Code City (postal_code_city)
- Region (region)
- Country (country)
- Communication data (communication_data)
- Phone (phone)
- Country code (country_code)
- Standard flag (standard)
- Telephone No (telephone)
- E-Mail addresses (smtp)
- Standard flag (standard)
- E-Mail address (email)
- Sales Data Table (sales_data)
- Data (data)
- Sales Organization (sales_organization)
- Distribution Channel (distribution_channel)
- Division (division)
- Deletion Flag (deletion_flag)
- Order Block (customer_order_block)
- Payment Terms (terms_of_payment)
- Manual Invoice Maintenance (manual_invoice_maintenance)
- Company Code (company_code)
- Currency (currency_key)
- Partner Table (partner)
- Partner Function (partner_function)
- Partner Counter (partner_counter)
- Partner Number (partner_number)
- Default Partner Flag (default_partner)
- Status (status)
- Message Type (message_type)
- SAP Message Type.
- Errors:
- E = Error
- A = Abort
- X = Exception
- Others:
- S = Success
- W = Warning
- I = Information
- Message Identifier (message_identification)
- SAP Message ID.
- Message Number (message_number)
- SAP Message Number.
- Message Line (message_line_string)
- SAP Message Text.
Example Response
JSON:
{
"detail": {
"address_data": {
"name": "Best Manufacturing Inc.",
"city": "MAYWOOD",
"district": "COOK",
"street": "South 25th Ave",
"postal_code_city": "60153",
"region": "IL",
"country": "US"
},
"communcation_data": {
"phone": [
{
"country_code": "US",
"standard": "X",
"telephone": "(312)450-BUSH"
}
],
"smtp": [
{
"standard": "X",
"email": "demo@cnbssoftware.com"
},
{
"email": "office@cnbssoftware.com"
}
]
},
"sales_data": [
{
"data": {
"sales_organization": "3000",
"distribution_channel": "10",
"division": "00",
"terms_of_payment": "NT30",
"company_code:": "3000",
"currency_key": "USD"
},
"partner": [
{
"partner_function": "AG",
"partner_number": "0000003000"
},
{
"partner_function": "RG",
"partner_number": "0000003050"
}
]
}
]
},
"status": {
"message_type": "S",
"message_identification": "/CNBS/X_API",
"message_number": 10,
"message_line_string": "Request successfully processed"
}
}