Overview
The ERP SD Customer Proxy service is used for manipulating SAP ERP customer master data.
Using this service, you can:
- Create SAP ERP customers
- Update SAP ERP customers
Before you use the service, you need to configure the ERP system settings in the ERP SD Configuration service.
API Reference
/{tenant}/customers
Manage ERP customers for a given tenant.
/{tenant}/customers
Create a customer in the SAP ERP system via BAPI BAPI_CUSTOMER_CREATEFROMDATA1. In case the BAPI returns error message, the response status will be 400 and the error message will be displayed in the response body.
Required scope: hybris.sdcustomerproxy_manage
post /{tenant}/customers
Create a customer in the SAP ERP system via BAPI BAPI_CUSTOMER_CREATEFROMDATA1. In case the BAPI returns error message, the response status will be 400 and the error message will be displayed in the response body.
Required scope: hybris.sdcustomerproxy_manage
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
Headers
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "InputOfBAPI_CUSTOMER_CREATEFROMDATA1",
"type": "object",
"properties": {
"PI_COMPANYDATA": {
"title": "BAPIKNA106",
"type": "object",
"description": "Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE": {
"title": "TITLE",
"type": "string",
"description": "",
"maxLength": 30
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"NAME": {
"title": "NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_2": {
"title": "NAME_2",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_3": {
"title": "NAME_3",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_4": {
"title": "NAME_4",
"type": "string",
"description": "",
"maxLength": 40
},
"C_O_NAME": {
"title": "C_O_NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY_NO": {
"title": "CITY_NO",
"type": "string",
"description": "",
"maxLength": 12
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD3": {
"title": "POSTL_COD3",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"DELIV_DIS": {
"title": "DELIV_DIS",
"type": "string",
"description": "",
"maxLength": 15
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 40
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 10
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"LANGU": {
"title": "LANGU",
"type": "string",
"description": "",
"maxLength": 1
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"LANGU_ISO": {
"title": "LANGU_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
}
},
"required": []
},
"PI_CONSUMEREN": {
"title": "PI_CONSUMEREN",
"type": "string",
"description": "Allow Consumer Maintenance",
"maxLength": 1,
"default": ""
},
"PI_COPYREFERENCE": {
"title": "BAPIKNA102",
"type": "object",
"description": "Reference Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"SALESORG": {
"title": "SALESORG",
"type": "string",
"description": "",
"maxLength": 4
},
"DISTR_CHAN": {
"title": "DISTR_CHAN",
"type": "string",
"description": "",
"maxLength": 2
},
"DIVISION": {
"title": "DIVISION",
"type": "string",
"description": "",
"maxLength": 2
},
"REF_CUSTMR": {
"title": "REF_CUSTMR",
"type": "string",
"description": "",
"maxLength": 10
}
},
"required": []
},
"PI_CREDIT_CONTROL_FLAG": {
"title": "PI_CREDIT_CONTROL_FLAG",
"type": "string",
"description": "Update Credit Control Data",
"maxLength": 1,
"default": ""
},
"PI_OPT_COMPANYDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PI_OPT_PERSONALDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PI_PERSONALDATA": {
"title": "BAPIKNA101_1",
"type": "object",
"description": "Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE_P": {
"title": "TITLE_P",
"type": "string",
"description": "",
"maxLength": 30
},
"FIRSTNAME": {
"title": "FIRSTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"LASTNAME": {
"title": "LASTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"MIDDLENAME": {
"title": "MIDDLENAME",
"type": "string",
"description": "",
"maxLength": 40
},
"SECONDNAME": {
"title": "SECONDNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"DATE_BIRTH": {
"title": "DATE_BIRTH",
"type": "string",
"description": "",
"maxLength": 8
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 60
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 20
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"LANGU_P": {
"title": "LANGU_P",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGUP_ISO": {
"title": "LANGUP_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"ONLY_CHANGE_COMADDRESS": {
"title": "ONLY_CHANGE_COMADDRESS",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
}
},
"required": [
"PI_COPYREFERENCE",
"PI_PERSONALDATA"
]
}
Example:
{
"PI_COMPANYDATA": {},
"PI_CONSUMEREN": "",
"PI_COPYREFERENCE": {
"SALESORG": "1000",
"DISTR_CHAN": "10",
"DIVISION": "10",
"REF_CUSTMR": "0003000275"
},
"PI_CREDIT_CONTROL_FLAG": "",
"PI_OPT_COMPANYDATA": {},
"PI_OPT_PERSONALDATA": {},
"PI_PERSONALDATA": {
"TITLE_P": "",
"FIRSTNAME": "Derek",
"LASTNAME": "Zhang",
"MIDDLENAME": "",
"SECONDNAME": "",
"DATE_BIRTH": "",
"CITY": "Chengdu",
"DISTRICT": "",
"POSTL_COD1": "610041",
"POSTL_COD2": "",
"PO_BOX": "",
"PO_BOX_CIT": "",
"STREET": "",
"HOUSE_NO": "",
"BUILDING": "",
"FLOOR": "",
"ROOM_NO": "",
"COUNTRY": "CN",
"COUNTRYISO": "CN",
"REGION": "",
"TEL1_NUMBR": "",
"TEL1_EXT": "",
"FAX_NUMBER": "",
"FAX_EXTENS": "",
"E_MAIL": "derek.zhang@sap.com",
"LANGU_P": "1",
"LANGUP_ISO": "ZH",
"CURRENCY": "CNY",
"CURRENCY_ISO": "CNY",
"TITLE_KEY": "",
"ONLY_CHANGE_COMADDRESS": ""
}
}
HTTP status code 201
Customer created successfully.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"title": "Resource Location",
"description": "Schema for showing location of the new resource.",
"properties": {
"id": {
"description": "The identifier of the created resource",
"type": "string"
},
"link": {
"description": "The link to the created resource",
"type": "string",
"format": "uri"
}
},
"required": [
"id",
"link"
]
}
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
/{tenant}/customers/{customerNumber}
Update an ERP customer for a given tenant.
Update the customer profile in the SAP ERP system via BAPI BAPI_CUSTOMER_CHANGEFROMDATA1. In case the BAPI returns error message, the response status will be 400 and the error message will be displayed in the response body.
Required scope: hybris.sdcustomerproxy_manage
Mark this customer for deletion in the SAP ERP system using the customized BAPI ZSAP_BAPI_CUSTOMER_DELETE. Before starting the operation, implement the SAP note 2407371 to create a custom function module.
For more information, see the [SAP Note 2407371] at http://service.sap.com/sap/support/notes/2407371.
Required scope: hybris.sdcustomerproxy_manage
Get detailed customer information in the SAP ERP system via the BAPI BAPI_CUSTOMER_GETDETAIL1. If the BAPI returns an error, the response status is 400
and the error message appears in the response body.
The three query parameters, qDistributionChannel, qDivision, and qSalesOrganization are optional for querying customer information. Basic customer data can be retrieved from the service when the customerNumber is correct, whether these query parameters are transferred to the service or not. However, if the optional parameters are transferred to the service, the relevant optional customer data is determined from the customer master. If the customer is a person, fill in the data for PE_OPT_PERSONALDATA_NEW and PE_OPT_PERSONALDATA. If the customer is a company, fill in the data for PEOPT COMPANYDATA NEW and PE COMPANYDATA.
Required scope:hybris.sdcustomerproxy_view
put /{tenant}/customers/{customerNumber}
Update the customer profile in the SAP ERP system via BAPI BAPI_CUSTOMER_CHANGEFROMDATA1. In case the BAPI returns error message, the response status will be 400 and the error message will be displayed in the response body.
Required scope: hybris.sdcustomerproxy_manage
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
- customerNumber: required (string - minLength: 1)
ERP customer number
Example:
786944
Headers
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "InputOfBAPI_CUSTOMER_CHANGEFROMDATA1",
"type": "object",
"properties": {
"CUSTOMERNO": {
"title": "CUSTOMERNO",
"type": "string",
"description": "Customer Number of the Customer to Be Changed",
"maxLength": 10,
"default": ""
},
"PI_COMPANYDATA": {
"title": "BAPIKNA106",
"type": "object",
"description": "Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE": {
"title": "TITLE",
"type": "string",
"description": "",
"maxLength": 30
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"NAME": {
"title": "NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_2": {
"title": "NAME_2",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_3": {
"title": "NAME_3",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_4": {
"title": "NAME_4",
"type": "string",
"description": "",
"maxLength": 40
},
"C_O_NAME": {
"title": "C_O_NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY_NO": {
"title": "CITY_NO",
"type": "string",
"description": "",
"maxLength": 12
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD3": {
"title": "POSTL_COD3",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"DELIV_DIS": {
"title": "DELIV_DIS",
"type": "string",
"description": "",
"maxLength": 15
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 40
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 10
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"LANGU": {
"title": "LANGU",
"type": "string",
"description": "",
"maxLength": 1
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"LANGU_ISO": {
"title": "LANGU_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
}
},
"required": []
},
"PI_COMPANYDATAX": {
"title": "BAPIKNA106X",
"type": "object",
"description": "X Customer Company Data Structure",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE": {
"title": "TITLE",
"type": "string",
"description": "",
"maxLength": 1
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 1
},
"NAME": {
"title": "NAME",
"type": "string",
"description": "",
"maxLength": 1
},
"NAME_2": {
"title": "NAME_2",
"type": "string",
"description": "",
"maxLength": 1
},
"NAME_3": {
"title": "NAME_3",
"type": "string",
"description": "",
"maxLength": 1
},
"NAME_4": {
"title": "NAME_4",
"type": "string",
"description": "",
"maxLength": 1
},
"C_O_NAME": {
"title": "C_O_NAME",
"type": "string",
"description": "",
"maxLength": 1
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 1
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 1
},
"CITY_NO": {
"title": "CITY_NO",
"type": "string",
"description": "",
"maxLength": 1
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 1
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 1
},
"POSTL_COD3": {
"title": "POSTL_COD3",
"type": "string",
"description": "",
"maxLength": 1
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 1
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 1
},
"DELIV_DIS": {
"title": "DELIV_DIS",
"type": "string",
"description": "",
"maxLength": 1
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 1
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 1
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 1
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 1
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 1
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGU": {
"title": "LANGU",
"type": "string",
"description": "",
"maxLength": 1
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 1
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 1
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 1
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 1
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 1
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 1
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGU_ISO": {
"title": "LANGU_ISO",
"type": "string",
"description": "",
"maxLength": 1
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 1
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PI_DISTR_CHAN": {
"title": "PI_DISTR_CHAN",
"type": "string",
"description": "Distribution Channel",
"maxLength": 2,
"default": ""
},
"PI_DIVISION": {
"title": "PI_DIVISION",
"type": "string",
"description": "Division",
"maxLength": 2,
"default": ""
},
"PI_OPT_COMPANYDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PI_OPT_COMPANYDATAX": {
"title": "BAPIKNA105X",
"type": "object",
"description": "X Optional Customer Company Data Structure",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 1
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 1
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 1
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 1
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 1
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 1
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PI_OPT_PERSONALDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PI_OPT_PERSONALDATAX": {
"title": "BAPIKNA105X",
"type": "object",
"description": "X Optional Customer Personal Data Structure",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 1
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 1
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 1
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 1
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 1
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 1
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PI_PERSONALDATA": {
"title": "BAPIKNA101_1",
"type": "object",
"description": "Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE_P": {
"title": "TITLE_P",
"type": "string",
"description": "",
"maxLength": 30
},
"FIRSTNAME": {
"title": "FIRSTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"LASTNAME": {
"title": "LASTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"MIDDLENAME": {
"title": "MIDDLENAME",
"type": "string",
"description": "",
"maxLength": 40
},
"SECONDNAME": {
"title": "SECONDNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"DATE_BIRTH": {
"title": "DATE_BIRTH",
"type": "string",
"description": "",
"maxLength": 8
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 60
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 20
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"LANGU_P": {
"title": "LANGU_P",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGUP_ISO": {
"title": "LANGUP_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"ONLY_CHANGE_COMADDRESS": {
"title": "ONLY_CHANGE_COMADDRESS",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PI_PERSONALDATAX": {
"title": "BAPIKNA101_1X",
"type": "object",
"description": "X Customer Personal Data Structure",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE_P": {
"title": "TITLE_P",
"type": "string",
"description": "",
"maxLength": 1
},
"FIRSTNAME": {
"title": "FIRSTNAME",
"type": "string",
"description": "",
"maxLength": 1
},
"LASTNAME": {
"title": "LASTNAME",
"type": "string",
"description": "",
"maxLength": 1
},
"MIDDLENAME": {
"title": "MIDDLENAME",
"type": "string",
"description": "",
"maxLength": 1
},
"SECONDNAME": {
"title": "SECONDNAME",
"type": "string",
"description": "",
"maxLength": 1
},
"DATE_BIRTH": {
"title": "DATE_BIRTH",
"type": "string",
"description": "",
"maxLength": 1
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 1
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 1
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 1
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 1
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 1
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 1
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 1
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 1
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 1
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 1
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 1
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 1
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 1
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 1
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 1
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 1
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 1
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 1
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGU_P": {
"title": "LANGU_P",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGUP_ISO": {
"title": "LANGUP_ISO",
"type": "string",
"description": "",
"maxLength": 1
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 1
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 1
},
"ONLY_CHANGE_COMADDRESS": {
"title": "ONLY_CHANGE_COMADDRESS",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PI_SALESORG": {
"title": "PI_SALESORG",
"type": "string",
"description": "Sales Organization",
"maxLength": 4,
"default": ""
}
},
"required": [
"CUSTOMERNO",
"PI_PERSONALDATA",
"PI_PERSONALDATAX",
"PI_SALESORG"
]
}
Example:
{
"CUSTOMERNO": "0003000275",
"PI_COMPANYDATA": {},
"PI_COMPANYDATAX": {},
"PI_DISTR_CHAN": "10",
"PI_DIVISION": "10",
"PI_OPT_COMPANYDATA": {},
"PI_OPT_COMPANYDATAX": {},
"PI_OPT_PERSONALDATA": {},
"PI_OPT_PERSONALDATAX": {},
"PI_PERSONALDATA": {
"FIRSTNAME": "James",
"LASTNAME": "Owen",
"CITY": "chengdu",
"POSTL_COD1": "614000",
"COUNTRY": "CN",
"COUNTRYISO": "CN",
"LANGU_P": "1",
"LANGUP_ISO": "ZH",
"CURRENCY": "CNY",
"CURRENCY_ISO": "CNY"
},
"PI_PERSONALDATAX": {
"FIRSTNAME": "X",
"LASTNAME": "X"
},
"PI_SALESORG": "1000"
}
HTTP status code 200
Customer updated successfully.
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
delete /{tenant}/customers/{customerNumber}
Mark this customer for deletion in the SAP ERP system using the customized BAPI ZSAP_BAPI_CUSTOMER_DELETE. Before starting the operation, implement the SAP note 2407371 to create a custom function module.
For more information, see the [SAP Note 2407371] at http://service.sap.com/sap/support/notes/2407371.
Required scope: hybris.sdcustomerproxy_manage
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
- customerNumber: required (string - minLength: 1)
ERP customer number
Example:
786944
Headers
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
HTTP status code 204
Customer is marked for deletion successfully.
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
get /{tenant}/customers/{customerNumber}
Get detailed customer information in the SAP ERP system via the BAPI BAPI_CUSTOMER_GETDETAIL1. If the BAPI returns an error, the response status is 400
and the error message appears in the response body.
The three query parameters, qDistributionChannel, qDivision, and qSalesOrganization are optional for querying customer information. Basic customer data can be retrieved from the service when the customerNumber is correct, whether these query parameters are transferred to the service or not. However, if the optional parameters are transferred to the service, the relevant optional customer data is determined from the customer master. If the customer is a person, fill in the data for PE_OPT_PERSONALDATA_NEW and PE_OPT_PERSONALDATA. If the customer is a company, fill in the data for PEOPT COMPANYDATA NEW and PE COMPANYDATA.
Required scope:hybris.sdcustomerproxy_view
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
- customerNumber: required (string - minLength: 1)
ERP customer number
Example:
786944
Headers
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
Query Parameters
- qSalesOrganization: required (string)
Sales Organization
Example:
1000
- qDistributionChannel: (string)
Distribution Channel
Example:
10
- qDivision: (string)
Division
Example:
10
HTTP status code 200
Customer detailed information retrieved successfully.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OutputOfBAPI_CUSTOMER_GETDETAIL1",
"type": "object",
"properties": {
"PE_ADDRESSTYPE_NO": {
"title": "BAPIKNA109",
"type": "object",
"description": "Address Number/Address Category",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"ADDRTYPE": {
"title": "ADDRTYPE",
"type": "string",
"description": "",
"maxLength": 1
},
"ADRNR": {
"title": "ADRNR",
"type": "string",
"description": "",
"maxLength": 10
},
"ADRNP_2": {
"title": "ADRNP_2",
"type": "string",
"description": "",
"maxLength": 10
},
"PRSNR": {
"title": "PRSNR",
"type": "string",
"description": "",
"maxLength": 10
}
},
"required": []
},
"PE_COMPANYDATA": {
"title": "BAPIKNA106",
"type": "object",
"description": "Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE": {
"title": "TITLE",
"type": "string",
"description": "",
"maxLength": 30
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"NAME": {
"title": "NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_2": {
"title": "NAME_2",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_3": {
"title": "NAME_3",
"type": "string",
"description": "",
"maxLength": 40
},
"NAME_4": {
"title": "NAME_4",
"type": "string",
"description": "",
"maxLength": 40
},
"C_O_NAME": {
"title": "C_O_NAME",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"CITY_NO": {
"title": "CITY_NO",
"type": "string",
"description": "",
"maxLength": 12
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD3": {
"title": "POSTL_COD3",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"DELIV_DIS": {
"title": "DELIV_DIS",
"type": "string",
"description": "",
"maxLength": 15
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 40
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 10
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"LANGU": {
"title": "LANGU",
"type": "string",
"description": "",
"maxLength": 1
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"LANGU_ISO": {
"title": "LANGU_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
}
},
"required": []
},
"PE_CONSUMER_FLAG": {
"title": "PE_CONSUMER_FLAG",
"type": "string",
"description": "Customer is Consumer",
"maxLength": 1
},
"PE_OPT_COMPANYDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Customer Company Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PE_OPT_PERSONALDATA": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Personal Data for Customer",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PE_OPT_PERSONALDATA_NEW": {
"title": "BAPIKNA105",
"type": "object",
"description": "Optional Personal Data for Customer",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TRANSPZONE": {
"title": "TRANSPZONE",
"type": "string",
"description": "",
"maxLength": 10
},
"CONTROL_ACCOUNT": {
"title": "CONTROL_ACCOUNT",
"type": "string",
"description": "",
"maxLength": 10
},
"PMNTTRMS": {
"title": "PMNTTRMS",
"type": "string",
"description": "",
"maxLength": 4
},
"SHIP_COND": {
"title": "SHIP_COND",
"type": "string",
"description": "",
"maxLength": 2
},
"DELYG_PLNT": {
"title": "DELYG_PLNT",
"type": "string",
"description": "",
"maxLength": 4
},
"PART_DLV": {
"title": "PART_DLV",
"type": "string",
"description": "",
"maxLength": 1
},
"C_CTR_AREA": {
"title": "C_CTR_AREA",
"type": "string",
"description": "",
"maxLength": 4
},
"TAXJURCODE": {
"title": "TAXJURCODE",
"type": "string",
"description": "",
"maxLength": 15
}
},
"required": []
},
"PE_PERSONALDATA": {
"title": "BAPIKNA101_1",
"type": "object",
"description": "Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE_P": {
"title": "TITLE_P",
"type": "string",
"description": "",
"maxLength": 30
},
"FIRSTNAME": {
"title": "FIRSTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"LASTNAME": {
"title": "LASTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"MIDDLENAME": {
"title": "MIDDLENAME",
"type": "string",
"description": "",
"maxLength": 40
},
"SECONDNAME": {
"title": "SECONDNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"DATE_BIRTH": {
"title": "DATE_BIRTH",
"type": "string",
"description": "",
"maxLength": 8
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 60
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 20
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"LANGU_P": {
"title": "LANGU_P",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGUP_ISO": {
"title": "LANGUP_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"ONLY_CHANGE_COMADDRESS": {
"title": "ONLY_CHANGE_COMADDRESS",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"PE_PERSONALDATA_NEW": {
"title": "BAPIKNA101_1",
"type": "object",
"description": "Customer Personal Data",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TITLE_P": {
"title": "TITLE_P",
"type": "string",
"description": "",
"maxLength": 30
},
"FIRSTNAME": {
"title": "FIRSTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"LASTNAME": {
"title": "LASTNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"MIDDLENAME": {
"title": "MIDDLENAME",
"type": "string",
"description": "",
"maxLength": 40
},
"SECONDNAME": {
"title": "SECONDNAME",
"type": "string",
"description": "",
"maxLength": 40
},
"DATE_BIRTH": {
"title": "DATE_BIRTH",
"type": "string",
"description": "",
"maxLength": 8
},
"CITY": {
"title": "CITY",
"type": "string",
"description": "",
"maxLength": 40
},
"DISTRICT": {
"title": "DISTRICT",
"type": "string",
"description": "",
"maxLength": 40
},
"POSTL_COD1": {
"title": "POSTL_COD1",
"type": "string",
"description": "",
"maxLength": 10
},
"POSTL_COD2": {
"title": "POSTL_COD2",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX": {
"title": "PO_BOX",
"type": "string",
"description": "",
"maxLength": 10
},
"PO_BOX_CIT": {
"title": "PO_BOX_CIT",
"type": "string",
"description": "",
"maxLength": 40
},
"STREET": {
"title": "STREET",
"type": "string",
"description": "",
"maxLength": 60
},
"HOUSE_NO": {
"title": "HOUSE_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"BUILDING": {
"title": "BUILDING",
"type": "string",
"description": "",
"maxLength": 20
},
"FLOOR": {
"title": "FLOOR",
"type": "string",
"description": "",
"maxLength": 10
},
"ROOM_NO": {
"title": "ROOM_NO",
"type": "string",
"description": "",
"maxLength": 10
},
"COUNTRY": {
"title": "COUNTRY",
"type": "string",
"description": "",
"maxLength": 3
},
"COUNTRYISO": {
"title": "COUNTRYISO",
"type": "string",
"description": "",
"maxLength": 2
},
"REGION": {
"title": "REGION",
"type": "string",
"description": "",
"maxLength": 3
},
"TEL1_NUMBR": {
"title": "TEL1_NUMBR",
"type": "string",
"description": "",
"maxLength": 30
},
"TEL1_EXT": {
"title": "TEL1_EXT",
"type": "string",
"description": "",
"maxLength": 10
},
"FAX_NUMBER": {
"title": "FAX_NUMBER",
"type": "string",
"description": "",
"maxLength": 30
},
"FAX_EXTENS": {
"title": "FAX_EXTENS",
"type": "string",
"description": "",
"maxLength": 10
},
"E_MAIL": {
"title": "E_MAIL",
"type": "string",
"description": "",
"maxLength": 241
},
"LANGU_P": {
"title": "LANGU_P",
"type": "string",
"description": "",
"maxLength": 1
},
"LANGUP_ISO": {
"title": "LANGUP_ISO",
"type": "string",
"description": "",
"maxLength": 2
},
"CURRENCY": {
"title": "CURRENCY",
"type": "string",
"description": "",
"maxLength": 5
},
"CURRENCY_ISO": {
"title": "CURRENCY_ISO",
"type": "string",
"description": "",
"maxLength": 3
},
"TITLE_KEY": {
"title": "TITLE_KEY",
"type": "string",
"description": "",
"maxLength": 4
},
"ONLY_CHANGE_COMADDRESS": {
"title": "ONLY_CHANGE_COMADDRESS",
"type": "string",
"description": "",
"maxLength": 1
}
},
"required": []
},
"RETURN": {
"title": "BAPIRETURN1",
"type": "object",
"description": "Return Value",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TYPE": {
"title": "TYPE",
"type": "string",
"description": "",
"maxLength": 1
},
"ID": {
"title": "ID",
"type": "string",
"description": "",
"maxLength": 20
},
"NUMBER": {
"title": "NUMBER",
"type": "integer",
"description": ""
},
"MESSAGE": {
"title": "MESSAGE",
"type": "string",
"description": "",
"maxLength": 220
},
"LOG_NO": {
"title": "LOG_NO",
"type": "string",
"description": "",
"maxLength": 20
},
"LOG_MSG_NO": {
"title": "LOG_MSG_NO",
"type": "integer",
"description": ""
},
"MESSAGE_V1": {
"title": "MESSAGE_V1",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V2": {
"title": "MESSAGE_V2",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V3": {
"title": "MESSAGE_V3",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V4": {
"title": "MESSAGE_V4",
"type": "string",
"description": "",
"maxLength": 50
}
},
"required": []
}
},
"required": [
"PE_ADDRESSTYPE_NO",
"PE_COMPANYDATA",
"PE_CONSUMER_FLAG",
"PE_OPT_COMPANYDATA",
"PE_OPT_PERSONALDATA",
"PE_OPT_PERSONALDATA_NEW",
"PE_PERSONALDATA",
"PE_PERSONALDATA_NEW",
"RETURN"
]
}
Example:
{
"PE_ADDRESSTYPE_NO": {
"ADDRTYPE": "2",
"ADRNP_2": "0000028327",
"PRSNR": "0000028325"
},
"PE_COMPANYDATA": {},
"PE_OPT_COMPANYDATA": {},
"PE_OPT_PERSONALDATA": {
"SHIP_COND": "01"
},
"PE_OPT_PERSONALDATA_NEW": {
"SHIP_COND": "01"
},
"PE_PERSONALDATA": {},
"PE_PERSONALDATA_NEW": {
"CITY": "Chengdu",
"COUNTRY": "US",
"COUNTRYISO": "US",
"CURRENCY": "USD",
"E_MAIL": "andrew.pang@hybristest.com",
"FIRSTNAME": "Andrew",
"LANGUP_ISO": "EN",
"LANGU_P": "E",
"LASTNAME": "Pang",
"POSTL_COD1": "33223",
"REGION": "AL",
"STREET": "Tianfu Road",
"TITLE_KEY": "0002",
"TITLE_P": "Mr."
},
"RETURN": {
"LOG_MSG_NO": 0,
"NUMBER": 0
}
}
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
/{tenant}/customers/{customerNumber}/salesareas
Manage sales areas of a given ERP customer for a given tenant.
/{tenant}/customers/{customerNumber}/salesareas
Retrieve payment card list of a given ERP customer for a given tenant.
Required scope: hybris.sdcustomerproxy_view
get /{tenant}/customers/{customerNumber}/salesareas
Retrieve payment card list of a given ERP customer for a given tenant.
Required scope: hybris.sdcustomerproxy_view
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
- customerNumber: required (string)
Headers
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
HTTP status code 200
Sales areas retrieved successfully.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OutputOfBAPI_CUSTOMER_GETSALESAREAS",
"type": "object",
"properties": {
"RETURN": {
"title": "BAPIRETURN",
"type": "object",
"description": "Return parameter",
"$schema": "http://json-schema.org/draft-04/schema#",
"properties": {
"TYPE": {
"title": "TYPE",
"type": "string",
"description": "",
"maxLength": 1
},
"CODE": {
"title": "CODE",
"type": "string",
"description": "",
"maxLength": 5
},
"MESSAGE": {
"title": "MESSAGE",
"type": "string",
"description": "",
"maxLength": 220
},
"LOG_NO": {
"title": "LOG_NO",
"type": "string",
"description": "",
"maxLength": 20
},
"LOG_MSG_NO": {
"title": "LOG_MSG_NO",
"type": "integer",
"description": ""
},
"MESSAGE_V1": {
"title": "MESSAGE_V1",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V2": {
"title": "MESSAGE_V2",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V3": {
"title": "MESSAGE_V3",
"type": "string",
"description": "",
"maxLength": 50
},
"MESSAGE_V4": {
"title": "MESSAGE_V4",
"type": "string",
"description": "",
"maxLength": 50
}
},
"required": []
},
"SALESAREAS": {
"title": "SALESAREAS",
"type": "array",
"description": "Table of sales areas",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "BAPIKNVVKY",
"type": "object",
"properties": {
"CUSTOMER": {
"title": "CUSTOMER",
"type": "string",
"description": "",
"maxLength": 10
},
"SALESORG": {
"title": "SALESORG",
"type": "string",
"description": "",
"maxLength": 4
},
"DISTRCHN": {
"title": "DISTRCHN",
"type": "string",
"description": "",
"maxLength": 2
},
"DIVISION": {
"title": "DIVISION",
"type": "string",
"description": "",
"maxLength": 2
}
},
"required": []
}
}
},
"required": [
"RETURN"
]
}
Example:
{
"CUSTOMERNO": "0003000275"
}
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
/{tenant}/customers/{customerNumber}/creditCards
Retrieve the payment card list of a given ERP customer.
/{tenant}/customers/{customerNumber}/creditCards
Retrieve the payment card list of a given ERP customer for a given tenant. For more information, find [SAP Note 2405050] at http://service.sap.com/sap/support/notes/2405050.
Required scope: hybris.sdcustomerproxy_view
get /{tenant}/customers/{customerNumber}/creditCards
Retrieve the payment card list of a given ERP customer for a given tenant. For more information, find [SAP Note 2405050] at http://service.sap.com/sap/support/notes/2405050.
Required scope: hybris.sdcustomerproxy_view
URI Parameters
- Tenant: required (string - minLength: 3 - maxLength: 16 - pattern: [a-z][a-z0-9]+)
Stands for the "project" that requests this resource. Must match the "project" that is associated with the access token in the Authorization header.
Example:
myexampleshop
- customerNumber: required (string)
Headers
- Authorization: required (string)
Used to send a valid OAuth2 access token.
Example:
Bearer access_token
- Accept-Language: (string - repeat: true)
The value of the locale identifier of the language in which the attribute should be returned. Provide several values separated by comma, in order to specify fallback languages.
Example:
pl
- hybris-languages: (string - repeat: true)
Comma separated list of language identifiers for which the localization for an attribute should be provided.
Example:
en,pl,it
HTTP status code 200
Payment card list retrieved successfully.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "OutputOfCreditCards",
"type": "array",
"description": "Credit Cards Array",
"items": {
"title": "OutputOfCreditCard",
"type": "object",
"properties": {
"cardtype": {
"title": "cardtype",
"type": "string",
"description": "payment card type",
"maxLength": 25
},
"cardnumber": {
"title": "cardnumber",
"type": "string",
"description": "payment cared number",
"maxLength": 25
},
"cardholder": {
"title": "cardholder",
"type": "string",
"description": "card holder",
"maxLength": 40
},
"validto": {
"title": "validto",
"type": "string",
"description": "Date Valid to",
"maxLength": 8
}
}
}
}
Example:
[
{
"cardholder": "Paul Roth",
"cardnumber": "411XXXXXXXXXX57",
"cardtype": "MAST",
"validto": "2018-06-31"
},
{
"cardholder": "Paul Roth",
"cardnumber": "41111XXXXX11111",
"cardtype": "VISA",
"validto": "2018-12-31"
},
{
"cardholder": "Paul Roth",
"cardnumber": "411XXXXXXXXXX45",
"cardtype": "VISA",
"validto": "2018-03-31"
}
]
HTTP status code 400
Request syntactically incorrect. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 400,
"message": "There are validation problems, see details section for more information",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html",
"type": "validation_violation",
"details": [
{
"field": "Accept-Language",
"message": "not a language",
"type": "invalid_header"
}
]
}
HTTP status code 401
Given request is unauthorized. Bad or expired token. Reauthenticate the user. Any details will be provided within the response payload.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 401,
"message": "Authorization: Unauthorized. Bearer TOKEN is invalid",
"type": "insufficient_credentials",
"moreInfo": "https://api.yaas.io/patterns/errortypes.html"
}
HTTP status code 403
Evaluated request scopes in access token are not sufficient and do not match required scopes.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Example:
{
"status": 403,
"message": "Given request does not have required scopes in access token. It is not authorized to perform this operation.",
"type": "insufficient_permissions"
}
HTTP status code 404
The requested resource does not exist.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 500
Some server side error occurred.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
HTTP status code 503
Service temporarily unavailable.
Body
Type: application/json
Schema:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "error",
"description": "Schema for API specified errors.",
"type": "object",
"properties": {
"status": {
"type": "integer",
"description": "original HTTP error code, should be consistent with the response HTTP code",
"minimum": 100,
"maximum": 599
},
"type": {
"type": "string",
"description": "classification of the error type, lower case with underscore eg validation_failure",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support"
},
"details": {
"type": "array",
"description": "list of problems causing this error",
"items": {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "errorDetail",
"description": "schema for specific error cause",
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "a bean notation expression specifying the element in request data causing the error, eg product.variants[3].name, this can be empty if violation was not field specific"
},
"type": {
"type": "string",
"description": "classification of the error detail type, lower case with underscore eg missing_value, this value must be always interpreted in context of the general error type.",
"pattern": "[a-z]+[a-z_]*[a-z]+"
},
"message": {
"type": "string",
"description": "descriptive error detail message for debugging"
},
"moreInfo": {
"type": "string",
"format": "uri",
"description": "link to documentation to investigate further and finding support for error detail"
}
},
"required": [
"type"
]
}
}
},
"required": [
"status",
"type"
]
}
Scopes
The table shows the scopes that the ERP SD Customer Proxy service supports.
SCOPE | DESCRIPTION |
---|---|
hybris.sdcustomerproxy_view | Retrieve customer information in the SAP ERP system |
hybris.sdcustomerproxy_manage | Create, retrieve, and update a customer account in the SAP ERP system |
For more information about scopes, authorization, and authentication procedures for YaaS services, see Scopes and Authorization.
Create a Customer in the SAP ERP system
The ERP SD Customer Proxy service uses the BAPI BAPI_CUSTOMER_CREATEFROMDATA1 to create customers in the SAP ERP system and the same data structure as the BAPI.
You can create a customer in the SAP ERP system based on the entered personal data (import parameter PI_PERSONALDATA) or company data (import parameter PI_COMPANYDATA). You can transfer only one structure (personal data or company data) to the service. For more information, see the documentation for the BAPI BAPI_CUSTOMER_CREATEFROMDATA1 in the SAP ERP system.
Update a Customer in the SAP ERP System
The ERP SD Customer Proxy service uses the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1 to change the personal or company data of SAP ERP customers and the same data structure as the BAPI.
You can update a customer in the SAP ERP system based on the entered personal data (import parameter PI_PERSONALDATA) or company data (import parameter PI_COMPANYDATA). You can transfer only one structure (personal data or company data) to the service. For more information, see the documentation of the BAPI BAPI_CUSTOMER_CHANGEFROMDATA1 in the SAP ERP system.
Retrieve a Customer from the SAP ERP system
The ERP SD Customer Proxy service uses the BAPI BAPI_CUSTOMER_GETDETAIL1 to retrieve either the mandatory or optional personal data of SAP ERP customers. The mandatory personal data is stored in PE_PERSONALDATA_NEW and optional data is stored in the PE_OPT_PERSONALDATA_NEW part of the response data. The same BAPI retrieves the mandatory or optional company data. The mandatory company data is stored in PE_COMPANYDATA and optional company data is stored in PE_OPT_COMPANYDATA part of the response data.
For more information, see the documentation for the BAPI BAPI_CUSTOMER_GETDETAIL1 in the SAP ERP system.
Retrieve Sales Area for a Customer from the SAP ERP system
The ERP SD Customer Proxy service uses the BAPI BAPI_CUSTOMER_GETSALESAREAS to retrieve a list of sales areas of specified customers from the SAP ERP system and the same data structure as the BAPI. For more information, see the documentation of the BAPI BAPI_CUSTOMER_GETSALESAREAS in the SAP ERP system.
Retrieve Credit Cards for a Customer from the SAP ERP system
The ERP SD Customer Proxy service uses the BAPI ZSAP_BAPI_SD_CCARD_READ to retrieve a list of credit cards for specified customers from the SAP ERP system, and has the same data structure as the BAPI.
For more information, see the SAP Note 2405050.
Create a Customer in the SAP ERP system
To create a customer in SAP ERP, you need:
- Method: POST
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_manage.
URI Parameters
- {tenant}: The name of the current tenant
Body: To create a new customer, enter personal data (import parameter PI_PERSONALDATA) or company data (import parameter PI_COMPANYDATA) in the request body.
{
"PI_COMPANYDATA" : {},
"PI_CONSUMEREN" : "",
"PI_COPYREFERENCE" : {
"SALESORG" : "1000",
"DISTR_CHAN" : "10",
"DIVISION" : "10",
"REF_CUSTMR" : "0003000275"
},
"PI_CREDIT_CONTROL_FLAG" : "",
"PI_OPT_COMPANYDATA" : {},
"PI_OPT_PERSONALDATA" : {},
"PI_PERSONALDATA" : {
"TITLE_P" : "",
"FIRSTNAME" : "Derek",
"LASTNAME" : "Zhang",
"MIDDLENAME" : "",
"SECONDNAME" : "",
"DATE_BIRTH" : "",
"CITY" : "Chengdu",
"DISTRICT" : "",
"POSTL_COD1" : "610041",
"POSTL_COD2" : "",
"PO_BOX" : "",
"PO_BOX_CIT" : "",
"STREET" : "",
"HOUSE_NO" : "",
"BUILDING" : "",
"FLOOR" : "",
"ROOM_NO" : "",
"COUNTRY" : "CN",
"COUNTRYISO" : "CN",
"REGION" : "",
"TEL1_NUMBR" : "",
"TEL1_EXT" : "",
"FAX_NUMBER" : "",
"FAX_EXTENS" : "",
"E_MAIL" : "derek.zhang@sap.com",
"LANGU_P" : "1",
"LANGUP_ISO" : "ZH",
"CURRENCY" : "CNY",
"CURRENCY_ISO" : "CNY",
"TITLE_KEY" : "",
"ONLY_CHANGE_COMADDRESS" : ""
}
}
Response
The successful response returns a 201
status code. An example JSON content looks similar to the following:
{
"id": "0003002539"
}
Update a Customer in the SAP ERP system
To update a customer in SAP ERP, you need:
- Method: PUT
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers/{customerNumber}
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_manage.
URI Parameters
- {tenant}: The name of the current tenant
- {customerNumber}: The specified customer number
Body: To update a customer, specify the customer number in field CUSTOMERNO. This customer number should be the same as the one specified in the URL parameter customerNumber. You must also enter personal data (import parameter PI_PERSONALDATA) or company data (import parameter PI_COMPANYDATA).
{
"CUSTOMERNO": "0003000275",
"PI_COMPANYDATA": {},
"PI_COMPANYDATAX": {},
"PI_DISTR_CHAN": "10",
"PI_DIVISION": "10",
"PI_OPT_COMPANYDATA": {},
"PI_OPT_COMPANYDATAX": {},
"PI_OPT_PERSONALDATA": {},
"PI_OPT_PERSONALDATAX": {},
"PI_PERSONALDATA": {
"FIRSTNAME": "James",
"LASTNAME": "Owen",
"CITY": "chengdu",
"POSTL_COD1": "614000",
"COUNTRY": "CN",
"COUNTRYISO": "CN",
"LANGU_P": "1",
"LANGUP_ISO": "ZH",
"CURRENCY": "CNY",
"CURRENCY_ISO": "CNY"
},
"PI_PERSONALDATAX": {
"FIRSTNAME": "X",
"LASTNAME": "X"
},
"PI_SALESORG": "1000"
}
Response
The successful response returns a 204
status code.
Get a Customer in the SAP ERP System
To retrieve the detailed information about a customer in SAP ERP, you need:
Request
- Method: GET
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers/{customerNumber}
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_view.
URI Parameters
- {tenant}: The name of the current tenant
- {customerNumber}: The specified customer number
400
and the error message appears in the response body. The three query parameters qDistributionChannel, qDivision, and qSalesOrganization are optional for querying customer information. Basic customer data can be retrieved from the service when the customerNumber is correct, whether these query parameters are transferred to the service or not. However, if the optional parameters are transferred to the service, the relevant optional customer data is determined from the customer master data. If the customer is a person, fill in the data for PE_OPT_PERSONALDATA_NEW and PE_OPT_PERSONALDATA. If the customer is a company, fill in the data for PEOPT_COMPANYDATA_NEW and PE_COMPANYDATA.Response
The successful response returns a 200
status code. An example JSON content looks similar to the following:
{
"PE_ADDRESSTYPE_NO": {
"ADDRTYPE": "2",
"ADRNP_2": "0000028327",
"PRSNR": "0000028325"
},
"PE_COMPANYDATA": {},
"PE_OPT_COMPANYDATA": {},
"PE_OPT_PERSONALDATA": {
"SHIP_COND": "01"
},
"PE_OPT_PERSONALDATA_NEW": {
"SHIP_COND": "01"
},
"PE_PERSONALDATA": {},
"PE_PERSONALDATA_NEW": {
"CITY": "Chengdu",
"COUNTRY": "US",
"COUNTRYISO": "US",
"CURRENCY": "USD",
"E_MAIL": "andrew.pang@hybristest.com",
"FIRSTNAME": "Andrew",
"LANGUP_ISO": "EN",
"LANGU_P": "E",
"LASTNAME": "Pang",
"POSTL_COD1": "33223",
"REGION": "AL",
"STREET": "Tianfu Road",
"TITLE_KEY": "0002",
"TITLE_P": "Mr."
},
"RETURN": {
"LOG_MSG_NO": 0,
"NUMBER": 0
}
}
Retrieve Sales Areas of a Customer
To retrieve the sales areas of a specified ERP customer for a given tenant in SAP ERP, you need:
Request
- Method: GET
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers/{customerNumber}/salesareas
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_view.
URI Parameters
- {tenant}: The name of the current tenant
- {customerNumber}: The specified customer number
Response
The successful response returns a 200
status code. An example JSON content looks similar to the following:
[
{
"CUSTOMER": "0003001000",
"DISTRCHN": "10",
"DIVISION": "10",
"SALESORG": "1000"
}
]
Mark the customer for deletion
To mark a customer for deletion in the SAP ERP system, you need:
Request
- Method: DELETE
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers/{customerNumber}
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_manage.
URI Parameters
- {tenant}: The name of the current tenant
- {customerNumber}: The specified customer number
Response
A successful response returns a 204
status code.
Retrieve Credit Cards of a Customer
To retrieve the credit cards of a given ERP customer for a given tenant in the SAP ERP system, you need:
Request
- Method: GET
- Request URL:
https://api.beta.yaas.io/hybris/sdcustomerproxy/v2/{tenant}/customers/{customerNumber}/creditCards
Headers
- Authorization: This includes a valid OAuth2 access token. To access this method, the access token must be issued for the requested tenant and have the scope hybris.sdcustomerproxy_view.
URI Parameters
- {tenant}: The name of the current tenant.
- {customerNumber}: The specified customer number.
Response
A successful response returns a 200
status code. The returned JSON content looks similar to the example shown:
[
{
"cardholder": "Paul Roth",
"cardnumber": "411**********57",
"cardtype": "MAST",
"validto": "2018-06-31"
},
{
"cardholder": "Paul Roth",
"cardnumber": "41111*****11111",
"cardtype": "VISA",
"validto": "2018-12-31"
},
{
"cardholder": "Paul Roth",
"cardnumber": "411**********45",
"cardtype": "VISA",
"validto": "2018-03-31"
}
]
Error Types
For more information about error codes, see the API Reference.
Error Types
For more information about error codes, see the API Reference.
If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.
Use our private help channel. Receive updates over email and contact our specialists directly.
If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.