Back to Collection Items
#import <CkoHttp.h>
#import <CkoJsonObject.h>
#import <CkoStringBuilder.h>
#import <CkoHttpResponse.h>
#import <NSString.h>
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
CkoHttp *http = [[CkoHttp alloc] init];
BOOL success;
// Use this online tool to generate code from sample JSON: Generate Code to Create JSON
// The following JSON is sent in the request body.
// {
// "last_name": "<string>",
// "company_name": "<string>",
// "acquire_options": 2,
// "additional_groups_ids": [
// "<integer>",
// "<integer>"
// ],
// "bank_account": "<string>",
// "bank_account_owner": "<string>",
// "bank_bic": "<string>",
// "bank_code": "<string>",
// "bank_iban": "<string>",
// "bank_name": "<string>",
// "birth_date": "<date>",
// "cash_allowance": "<float>",
// "cash_allowance_days": 7,
// "cash_discount": "<float>",
// "cash_discount_type": "AMOUNT",
// "city": "<string>",
// "state": "<string>",
// "country": "<string>",
// "created_at": "<date>",
// "updated_at": "<string>",
// "delivery_title": "<string>",
// "delivery_city": "<string>",
// "delivery_state": "<string>",
// "delivery_company_name": "<string>",
// "delivery_country": "<string>",
// "delivery_first_name": "<string>",
// "delivery_last_name": "<string>",
// "delivery_personal": "<boolean>",
// "delivery_salutation": 0,
// "delivery_street": "<string>",
// "delivery_suffix_1": "<string>",
// "delivery_suffix_2": "<string>",
// "delivery_zip_code": "<string>",
// "display_name": "<string>",
// "emails": [
// "<string>",
// "<string>"
// ],
// "fax": "<string>",
// "first_name": "<string>",
// "grace_period": "<integer>",
// "due_in_days": "<integer>",
// "group_id": "<integer>",
// "id": "<long>",
// "info_1": "<string>",
// "info_2": "<string>",
// "internet": "<string>",
// "login_id": "<long>",
// "mobile": "<string>",
// "note": "<string>",
// "number": "<string>",
// "payment_options": 5,
// "personal": false,
// "phone_1": "<string>",
// "phone_2": "<string>",
// "postbox": "<string>",
// "postbox_city": "<string>",
// "postbox_state": "<string>",
// "postbox_country": "<string>",
// "postbox_zip_code": "<string>",
// "sale_price_level": "SALEPRICE10",
// "salutation": 0,
// "sepa_agreement": "BASIC",
// "sepa_agreement_date": "<date>",
// "sepa_mandate_reference": "<string>",
// "since_date": "<date>",
// "street": "<string>",
// "suffix_1": "<string>",
// "suffix_2": "<string>",
// "tax_number": "<string>",
// "court": "<string>",
// "court_registry_number": "<string>",
// "tax_options": "nStbUstID",
// "title": "<string>",
// "archived": "<boolean>",
// "vat_identifier": "<string>",
// "zip_code": "<string>",
// "document_pdf_type": "default",
// "buyer_reference": "<string>",
// "foreign_supplier_number": "<string>"
// }
CkoJsonObject *json = [[CkoJsonObject alloc] init];
[json UpdateString: @"last_name" value: @"<string>"];
[json UpdateString: @"company_name" value: @"<string>"];
[json UpdateInt: @"acquire_options" value: [NSNumber numberWithInt: 2]];
[json UpdateString: @"additional_groups_ids[0]" value: @"<integer>"];
[json UpdateString: @"additional_groups_ids[1]" value: @"<integer>"];
[json UpdateString: @"bank_account" value: @"<string>"];
[json UpdateString: @"bank_account_owner" value: @"<string>"];
[json UpdateString: @"bank_bic" value: @"<string>"];
[json UpdateString: @"bank_code" value: @"<string>"];
[json UpdateString: @"bank_iban" value: @"<string>"];
[json UpdateString: @"bank_name" value: @"<string>"];
[json UpdateString: @"birth_date" value: @"<date>"];
[json UpdateString: @"cash_allowance" value: @"<float>"];
[json UpdateInt: @"cash_allowance_days" value: [NSNumber numberWithInt: 7]];
[json UpdateString: @"cash_discount" value: @"<float>"];
[json UpdateString: @"cash_discount_type" value: @"AMOUNT"];
[json UpdateString: @"city" value: @"<string>"];
[json UpdateString: @"state" value: @"<string>"];
[json UpdateString: @"country" value: @"<string>"];
[json UpdateString: @"created_at" value: @"<date>"];
[json UpdateString: @"updated_at" value: @"<string>"];
[json UpdateString: @"delivery_title" value: @"<string>"];
[json UpdateString: @"delivery_city" value: @"<string>"];
[json UpdateString: @"delivery_state" value: @"<string>"];
[json UpdateString: @"delivery_company_name" value: @"<string>"];
[json UpdateString: @"delivery_country" value: @"<string>"];
[json UpdateString: @"delivery_first_name" value: @"<string>"];
[json UpdateString: @"delivery_last_name" value: @"<string>"];
[json UpdateString: @"delivery_personal" value: @"<boolean>"];
[json UpdateInt: @"delivery_salutation" value: [NSNumber numberWithInt: 0]];
[json UpdateString: @"delivery_street" value: @"<string>"];
[json UpdateString: @"delivery_suffix_1" value: @"<string>"];
[json UpdateString: @"delivery_suffix_2" value: @"<string>"];
[json UpdateString: @"delivery_zip_code" value: @"<string>"];
[json UpdateString: @"display_name" value: @"<string>"];
[json UpdateString: @"emails[0]" value: @"<string>"];
[json UpdateString: @"emails[1]" value: @"<string>"];
[json UpdateString: @"fax" value: @"<string>"];
[json UpdateString: @"first_name" value: @"<string>"];
[json UpdateString: @"grace_period" value: @"<integer>"];
[json UpdateString: @"due_in_days" value: @"<integer>"];
[json UpdateString: @"group_id" value: @"<integer>"];
[json UpdateString: @"id" value: @"<long>"];
[json UpdateString: @"info_1" value: @"<string>"];
[json UpdateString: @"info_2" value: @"<string>"];
[json UpdateString: @"internet" value: @"<string>"];
[json UpdateString: @"login_id" value: @"<long>"];
[json UpdateString: @"mobile" value: @"<string>"];
[json UpdateString: @"note" value: @"<string>"];
[json UpdateString: @"number" value: @"<string>"];
[json UpdateInt: @"payment_options" value: [NSNumber numberWithInt: 5]];
[json UpdateBool: @"personal" value: NO];
[json UpdateString: @"phone_1" value: @"<string>"];
[json UpdateString: @"phone_2" value: @"<string>"];
[json UpdateString: @"postbox" value: @"<string>"];
[json UpdateString: @"postbox_city" value: @"<string>"];
[json UpdateString: @"postbox_state" value: @"<string>"];
[json UpdateString: @"postbox_country" value: @"<string>"];
[json UpdateString: @"postbox_zip_code" value: @"<string>"];
[json UpdateString: @"sale_price_level" value: @"SALEPRICE10"];
[json UpdateInt: @"salutation" value: [NSNumber numberWithInt: 0]];
[json UpdateString: @"sepa_agreement" value: @"BASIC"];
[json UpdateString: @"sepa_agreement_date" value: @"<date>"];
[json UpdateString: @"sepa_mandate_reference" value: @"<string>"];
[json UpdateString: @"since_date" value: @"<date>"];
[json UpdateString: @"street" value: @"<string>"];
[json UpdateString: @"suffix_1" value: @"<string>"];
[json UpdateString: @"suffix_2" value: @"<string>"];
[json UpdateString: @"tax_number" value: @"<string>"];
[json UpdateString: @"court" value: @"<string>"];
[json UpdateString: @"court_registry_number" value: @"<string>"];
[json UpdateString: @"tax_options" value: @"nStbUstID"];
[json UpdateString: @"title" value: @"<string>"];
[json UpdateString: @"archived" value: @"<boolean>"];
[json UpdateString: @"vat_identifier" value: @"<string>"];
[json UpdateString: @"zip_code" value: @"<string>"];
[json UpdateString: @"document_pdf_type" value: @"default"];
[json UpdateString: @"buyer_reference" value: @"<string>"];
[json UpdateString: @"foreign_supplier_number" value: @"<string>"];
[http SetRequestHeader: @"Content-Type" value: @"application/json"];
[http SetRequestHeader: @"Authorization" value: @"{{apiKey}}"];
[http SetRequestHeader: @"Accept" value: @"application/json"];
CkoStringBuilder *sbRequestBody = [[CkoStringBuilder alloc] init];
[json EmitSb: sbRequestBody];
CkoHttpResponse *resp = [http PTextSb: @"PUT" url: @"https://api.easybill.de/rest/v1/customers/:id" textData: sbRequestBody charset: @"utf-8" contentType: @"application/json" md5: NO gzip: NO];
if (http.LastMethodSuccess == NO) {
NSLog(@"%@",http.LastErrorText);
return;
}
CkoStringBuilder *sbResponseBody = [[CkoStringBuilder alloc] init];
[resp GetBodySb: sbResponseBody];
CkoJsonObject *jResp = [[CkoJsonObject alloc] init];
[jResp LoadSb: sbResponseBody];
jResp.EmitCompact = NO;
NSLog(@"%@",@"Response Body:");
NSLog(@"%@",[jResp Emit]);
int respStatusCode = [resp.StatusCode intValue];
NSLog(@"%@%d",@"Response Status Code = ",respStatusCode);
if (respStatusCode >= 400) {
NSLog(@"%@",@"Response Header:");
NSLog(@"%@",resp.Header);
NSLog(@"%@",@"Failed.");
return;
}
// Sample JSON response:
// (Sample code for parsing the JSON response is shown below)
// {
// "last_name": "<string>",
// "company_name": "<string>",
// "acquire_options": 2,
// "additional_groups_ids": [
// "<integer>",
// "<integer>"
// ],
// "bank_account": "<string>",
// "bank_account_owner": "<string>",
// "bank_bic": "<string>",
// "bank_code": "<string>",
// "bank_iban": "<string>",
// "bank_name": "<string>",
// "birth_date": "<date>",
// "cash_allowance": "<float>",
// "cash_allowance_days": 7,
// "cash_discount": "<float>",
// "cash_discount_type": "AMOUNT",
// "city": "<string>",
// "state": "<string>",
// "country": "<string>",
// "created_at": "<date>",
// "updated_at": "<string>",
// "delivery_title": "<string>",
// "delivery_city": "<string>",
// "delivery_state": "<string>",
// "delivery_company_name": "<string>",
// "delivery_country": "<string>",
// "delivery_first_name": "<string>",
// "delivery_last_name": "<string>",
// "delivery_personal": "<boolean>",
// "delivery_salutation": 0,
// "delivery_street": "<string>",
// "delivery_suffix_1": "<string>",
// "delivery_suffix_2": "<string>",
// "delivery_zip_code": "<string>",
// "display_name": "<string>",
// "emails": [
// "<string>",
// "<string>"
// ],
// "fax": "<string>",
// "first_name": "<string>",
// "grace_period": "<integer>",
// "due_in_days": "<integer>",
// "group_id": "<integer>",
// "id": "<long>",
// "info_1": "<string>",
// "info_2": "<string>",
// "internet": "<string>",
// "login_id": "<long>",
// "mobile": "<string>",
// "note": "<string>",
// "number": "<string>",
// "payment_options": 5,
// "personal": false,
// "phone_1": "<string>",
// "phone_2": "<string>",
// "postbox": "<string>",
// "postbox_city": "<string>",
// "postbox_state": "<string>",
// "postbox_country": "<string>",
// "postbox_zip_code": "<string>",
// "sale_price_level": "SALEPRICE10",
// "salutation": 0,
// "sepa_agreement": "BASIC",
// "sepa_agreement_date": "<date>",
// "sepa_mandate_reference": "<string>",
// "since_date": "<date>",
// "street": "<string>",
// "suffix_1": "<string>",
// "suffix_2": "<string>",
// "tax_number": "<string>",
// "court": "<string>",
// "court_registry_number": "<string>",
// "tax_options": "nStbUstID",
// "title": "<string>",
// "archived": "<boolean>",
// "vat_identifier": "<string>",
// "zip_code": "<string>",
// "document_pdf_type": "default",
// "buyer_reference": "<string>",
// "foreign_supplier_number": "<string>"
// }
// Sample code for parsing the JSON response...
// Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code
NSString *strVal = 0;
NSString *last_name = [jResp StringOf: @"last_name"];
NSString *company_name = [jResp StringOf: @"company_name"];
int acquire_options = [[jResp IntOf: @"acquire_options"] intValue];
NSString *bank_account = [jResp StringOf: @"bank_account"];
NSString *bank_account_owner = [jResp StringOf: @"bank_account_owner"];
NSString *bank_bic = [jResp StringOf: @"bank_bic"];
NSString *bank_code = [jResp StringOf: @"bank_code"];
NSString *bank_iban = [jResp StringOf: @"bank_iban"];
NSString *bank_name = [jResp StringOf: @"bank_name"];
NSString *birth_date = [jResp StringOf: @"birth_date"];
NSString *cash_allowance = [jResp StringOf: @"cash_allowance"];
int cash_allowance_days = [[jResp IntOf: @"cash_allowance_days"] intValue];
NSString *cash_discount = [jResp StringOf: @"cash_discount"];
NSString *cash_discount_type = [jResp StringOf: @"cash_discount_type"];
NSString *city = [jResp StringOf: @"city"];
NSString *state = [jResp StringOf: @"state"];
NSString *country = [jResp StringOf: @"country"];
NSString *created_at = [jResp StringOf: @"created_at"];
NSString *updated_at = [jResp StringOf: @"updated_at"];
NSString *delivery_title = [jResp StringOf: @"delivery_title"];
NSString *delivery_city = [jResp StringOf: @"delivery_city"];
NSString *delivery_state = [jResp StringOf: @"delivery_state"];
NSString *delivery_company_name = [jResp StringOf: @"delivery_company_name"];
NSString *delivery_country = [jResp StringOf: @"delivery_country"];
NSString *delivery_first_name = [jResp StringOf: @"delivery_first_name"];
NSString *delivery_last_name = [jResp StringOf: @"delivery_last_name"];
NSString *delivery_personal = [jResp StringOf: @"delivery_personal"];
int delivery_salutation = [[jResp IntOf: @"delivery_salutation"] intValue];
NSString *delivery_street = [jResp StringOf: @"delivery_street"];
NSString *delivery_suffix_1 = [jResp StringOf: @"delivery_suffix_1"];
NSString *delivery_suffix_2 = [jResp StringOf: @"delivery_suffix_2"];
NSString *delivery_zip_code = [jResp StringOf: @"delivery_zip_code"];
NSString *display_name = [jResp StringOf: @"display_name"];
NSString *fax = [jResp StringOf: @"fax"];
NSString *first_name = [jResp StringOf: @"first_name"];
NSString *grace_period = [jResp StringOf: @"grace_period"];
NSString *due_in_days = [jResp StringOf: @"due_in_days"];
NSString *group_id = [jResp StringOf: @"group_id"];
NSString *id = [jResp StringOf: @"id"];
NSString *info_1 = [jResp StringOf: @"info_1"];
NSString *info_2 = [jResp StringOf: @"info_2"];
NSString *internet = [jResp StringOf: @"internet"];
NSString *login_id = [jResp StringOf: @"login_id"];
NSString *mobile = [jResp StringOf: @"mobile"];
NSString *note = [jResp StringOf: @"note"];
NSString *v_number = [jResp StringOf: @"number"];
int payment_options = [[jResp IntOf: @"payment_options"] intValue];
BOOL personal = [jResp BoolOf: @"personal"];
NSString *phone_1 = [jResp StringOf: @"phone_1"];
NSString *phone_2 = [jResp StringOf: @"phone_2"];
NSString *postbox = [jResp StringOf: @"postbox"];
NSString *postbox_city = [jResp StringOf: @"postbox_city"];
NSString *postbox_state = [jResp StringOf: @"postbox_state"];
NSString *postbox_country = [jResp StringOf: @"postbox_country"];
NSString *postbox_zip_code = [jResp StringOf: @"postbox_zip_code"];
NSString *sale_price_level = [jResp StringOf: @"sale_price_level"];
int salutation = [[jResp IntOf: @"salutation"] intValue];
NSString *sepa_agreement = [jResp StringOf: @"sepa_agreement"];
NSString *sepa_agreement_date = [jResp StringOf: @"sepa_agreement_date"];
NSString *sepa_mandate_reference = [jResp StringOf: @"sepa_mandate_reference"];
NSString *since_date = [jResp StringOf: @"since_date"];
NSString *street = [jResp StringOf: @"street"];
NSString *suffix_1 = [jResp StringOf: @"suffix_1"];
NSString *suffix_2 = [jResp StringOf: @"suffix_2"];
NSString *tax_number = [jResp StringOf: @"tax_number"];
NSString *court = [jResp StringOf: @"court"];
NSString *court_registry_number = [jResp StringOf: @"court_registry_number"];
NSString *tax_options = [jResp StringOf: @"tax_options"];
NSString *title = [jResp StringOf: @"title"];
NSString *archived = [jResp StringOf: @"archived"];
NSString *vat_identifier = [jResp StringOf: @"vat_identifier"];
NSString *zip_code = [jResp StringOf: @"zip_code"];
NSString *document_pdf_type = [jResp StringOf: @"document_pdf_type"];
NSString *buyer_reference = [jResp StringOf: @"buyer_reference"];
NSString *foreign_supplier_number = [jResp StringOf: @"foreign_supplier_number"];
int i = 0;
int count_i = [[jResp SizeOfArray: @"additional_groups_ids"] intValue];
while (i < count_i) {
jResp.I = [NSNumber numberWithInt: i];
strVal = [jResp StringOf: @"additional_groups_ids[i]"];
i = i + 1;
}
i = 0;
count_i = [[jResp SizeOfArray: @"emails"] intValue];
while (i < count_i) {
jResp.I = [NSNumber numberWithInt: i];
strVal = [jResp StringOf: @"emails[i]"];
i = i + 1;
}
Curl Command
curl -X PUT
-H "Authorization: {{apiKey}}"
-H "Content-Type: application/json"
-H "Accept: application/json"
-d '{
"last_name": "<string>",
"company_name": "<string>",
"acquire_options": 2,
"additional_groups_ids": [
"<integer>",
"<integer>"
],
"bank_account": "<string>",
"bank_account_owner": "<string>",
"bank_bic": "<string>",
"bank_code": "<string>",
"bank_iban": "<string>",
"bank_name": "<string>",
"birth_date": "<date>",
"cash_allowance": "<float>",
"cash_allowance_days": 7,
"cash_discount": "<float>",
"cash_discount_type": "AMOUNT",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"created_at": "<date>",
"updated_at": "<string>",
"delivery_title": "<string>",
"delivery_city": "<string>",
"delivery_state": "<string>",
"delivery_company_name": "<string>",
"delivery_country": "<string>",
"delivery_first_name": "<string>",
"delivery_last_name": "<string>",
"delivery_personal": "<boolean>",
"delivery_salutation": 0,
"delivery_street": "<string>",
"delivery_suffix_1": "<string>",
"delivery_suffix_2": "<string>",
"delivery_zip_code": "<string>",
"display_name": "<string>",
"emails": [
"<string>",
"<string>"
],
"fax": "<string>",
"first_name": "<string>",
"grace_period": "<integer>",
"due_in_days": "<integer>",
"group_id": "<integer>",
"id": "<long>",
"info_1": "<string>",
"info_2": "<string>",
"internet": "<string>",
"login_id": "<long>",
"mobile": "<string>",
"note": "<string>",
"number": "<string>",
"payment_options": 5,
"personal": false,
"phone_1": "<string>",
"phone_2": "<string>",
"postbox": "<string>",
"postbox_city": "<string>",
"postbox_state": "<string>",
"postbox_country": "<string>",
"postbox_zip_code": "<string>",
"sale_price_level": "SALEPRICE10",
"salutation": 0,
"sepa_agreement": "BASIC",
"sepa_agreement_date": "<date>",
"sepa_mandate_reference": "<string>",
"since_date": "<date>",
"street": "<string>",
"suffix_1": "<string>",
"suffix_2": "<string>",
"tax_number": "<string>",
"court": "<string>",
"court_registry_number": "<string>",
"tax_options": "nStbUstID",
"title": "<string>",
"archived": "<boolean>",
"vat_identifier": "<string>",
"zip_code": "<string>",
"document_pdf_type": "default",
"buyer_reference": "<string>",
"foreign_supplier_number": "<string>"
}'
https://api.easybill.de/rest/v1/customers/:id
Postman Collection Item JSON
{
"name": "Update Customer",
"request": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"last_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"acquire_options\": 2,\n \"additional_groups_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"bank_account\": \"<string>\",\n \"bank_account_owner\": \"<string>\",\n \"bank_bic\": \"<string>\",\n \"bank_code\": \"<string>\",\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"birth_date\": \"<date>\",\n \"cash_allowance\": \"<float>\",\n \"cash_allowance_days\": 7,\n \"cash_discount\": \"<float>\",\n \"cash_discount_type\": \"AMOUNT\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"created_at\": \"<date>\",\n \"updated_at\": \"<string>\",\n \"delivery_title\": \"<string>\",\n \"delivery_city\": \"<string>\",\n \"delivery_state\": \"<string>\",\n \"delivery_company_name\": \"<string>\",\n \"delivery_country\": \"<string>\",\n \"delivery_first_name\": \"<string>\",\n \"delivery_last_name\": \"<string>\",\n \"delivery_personal\": \"<boolean>\",\n \"delivery_salutation\": 0,\n \"delivery_street\": \"<string>\",\n \"delivery_suffix_1\": \"<string>\",\n \"delivery_suffix_2\": \"<string>\",\n \"delivery_zip_code\": \"<string>\",\n \"display_name\": \"<string>\",\n \"emails\": [\n \"<string>\",\n \"<string>\"\n ],\n \"fax\": \"<string>\",\n \"first_name\": \"<string>\",\n \"grace_period\": \"<integer>\",\n \"due_in_days\": \"<integer>\",\n \"group_id\": \"<integer>\",\n \"id\": \"<long>\",\n \"info_1\": \"<string>\",\n \"info_2\": \"<string>\",\n \"internet\": \"<string>\",\n \"login_id\": \"<long>\",\n \"mobile\": \"<string>\",\n \"note\": \"<string>\",\n \"number\": \"<string>\",\n \"payment_options\": 5,\n \"personal\": false,\n \"phone_1\": \"<string>\",\n \"phone_2\": \"<string>\",\n \"postbox\": \"<string>\",\n \"postbox_city\": \"<string>\",\n \"postbox_state\": \"<string>\",\n \"postbox_country\": \"<string>\",\n \"postbox_zip_code\": \"<string>\",\n \"sale_price_level\": \"SALEPRICE10\",\n \"salutation\": 0,\n \"sepa_agreement\": \"BASIC\",\n \"sepa_agreement_date\": \"<date>\",\n \"sepa_mandate_reference\": \"<string>\",\n \"since_date\": \"<date>\",\n \"street\": \"<string>\",\n \"suffix_1\": \"<string>\",\n \"suffix_2\": \"<string>\",\n \"tax_number\": \"<string>\",\n \"court\": \"<string>\",\n \"court_registry_number\": \"<string>\",\n \"tax_options\": \"nStbUstID\",\n \"title\": \"<string>\",\n \"archived\": \"<boolean>\",\n \"vat_identifier\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"document_pdf_type\": \"default\",\n \"buyer_reference\": \"<string>\",\n \"foreign_supplier_number\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/customers/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"customers",
":id"
],
"variable": [
{
"key": "id",
"value": "<long>",
"description": "(Required) ID of customer that needs to be updated"
}
]
}
},
"response": [
{
"name": "Successful operation",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"key": "Accept",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "Authorization",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"last_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"acquire_options\": 2,\n \"additional_groups_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"bank_account\": \"<string>\",\n \"bank_account_owner\": \"<string>\",\n \"bank_bic\": \"<string>\",\n \"bank_code\": \"<string>\",\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"birth_date\": \"<date>\",\n \"cash_allowance\": \"<float>\",\n \"cash_allowance_days\": 7,\n \"cash_discount\": \"<float>\",\n \"cash_discount_type\": \"AMOUNT\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"created_at\": \"<date>\",\n \"updated_at\": \"<string>\",\n \"delivery_title\": \"<string>\",\n \"delivery_city\": \"<string>\",\n \"delivery_state\": \"<string>\",\n \"delivery_company_name\": \"<string>\",\n \"delivery_country\": \"<string>\",\n \"delivery_first_name\": \"<string>\",\n \"delivery_last_name\": \"<string>\",\n \"delivery_personal\": \"<boolean>\",\n \"delivery_salutation\": 0,\n \"delivery_street\": \"<string>\",\n \"delivery_suffix_1\": \"<string>\",\n \"delivery_suffix_2\": \"<string>\",\n \"delivery_zip_code\": \"<string>\",\n \"display_name\": \"<string>\",\n \"emails\": [\n \"<string>\",\n \"<string>\"\n ],\n \"fax\": \"<string>\",\n \"first_name\": \"<string>\",\n \"grace_period\": \"<integer>\",\n \"due_in_days\": \"<integer>\",\n \"group_id\": \"<integer>\",\n \"id\": \"<long>\",\n \"info_1\": \"<string>\",\n \"info_2\": \"<string>\",\n \"internet\": \"<string>\",\n \"login_id\": \"<long>\",\n \"mobile\": \"<string>\",\n \"note\": \"<string>\",\n \"number\": \"<string>\",\n \"payment_options\": 5,\n \"personal\": false,\n \"phone_1\": \"<string>\",\n \"phone_2\": \"<string>\",\n \"postbox\": \"<string>\",\n \"postbox_city\": \"<string>\",\n \"postbox_state\": \"<string>\",\n \"postbox_country\": \"<string>\",\n \"postbox_zip_code\": \"<string>\",\n \"sale_price_level\": \"SALEPRICE10\",\n \"salutation\": 0,\n \"sepa_agreement\": \"BASIC\",\n \"sepa_agreement_date\": \"<date>\",\n \"sepa_mandate_reference\": \"<string>\",\n \"since_date\": \"<date>\",\n \"street\": \"<string>\",\n \"suffix_1\": \"<string>\",\n \"suffix_2\": \"<string>\",\n \"tax_number\": \"<string>\",\n \"court\": \"<string>\",\n \"court_registry_number\": \"<string>\",\n \"tax_options\": \"nStbUstID\",\n \"title\": \"<string>\",\n \"archived\": \"<boolean>\",\n \"vat_identifier\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"document_pdf_type\": \"default\",\n \"buyer_reference\": \"<string>\",\n \"foreign_supplier_number\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/customers/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"customers",
":id"
],
"variable": [
{
"key": "id"
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"cookie": [
],
"body": "{\n \"last_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"acquire_options\": 2,\n \"additional_groups_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"bank_account\": \"<string>\",\n \"bank_account_owner\": \"<string>\",\n \"bank_bic\": \"<string>\",\n \"bank_code\": \"<string>\",\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"birth_date\": \"<date>\",\n \"cash_allowance\": \"<float>\",\n \"cash_allowance_days\": 7,\n \"cash_discount\": \"<float>\",\n \"cash_discount_type\": \"AMOUNT\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"created_at\": \"<date>\",\n \"updated_at\": \"<string>\",\n \"delivery_title\": \"<string>\",\n \"delivery_city\": \"<string>\",\n \"delivery_state\": \"<string>\",\n \"delivery_company_name\": \"<string>\",\n \"delivery_country\": \"<string>\",\n \"delivery_first_name\": \"<string>\",\n \"delivery_last_name\": \"<string>\",\n \"delivery_personal\": \"<boolean>\",\n \"delivery_salutation\": 0,\n \"delivery_street\": \"<string>\",\n \"delivery_suffix_1\": \"<string>\",\n \"delivery_suffix_2\": \"<string>\",\n \"delivery_zip_code\": \"<string>\",\n \"display_name\": \"<string>\",\n \"emails\": [\n \"<string>\",\n \"<string>\"\n ],\n \"fax\": \"<string>\",\n \"first_name\": \"<string>\",\n \"grace_period\": \"<integer>\",\n \"due_in_days\": \"<integer>\",\n \"group_id\": \"<integer>\",\n \"id\": \"<long>\",\n \"info_1\": \"<string>\",\n \"info_2\": \"<string>\",\n \"internet\": \"<string>\",\n \"login_id\": \"<long>\",\n \"mobile\": \"<string>\",\n \"note\": \"<string>\",\n \"number\": \"<string>\",\n \"payment_options\": 5,\n \"personal\": false,\n \"phone_1\": \"<string>\",\n \"phone_2\": \"<string>\",\n \"postbox\": \"<string>\",\n \"postbox_city\": \"<string>\",\n \"postbox_state\": \"<string>\",\n \"postbox_country\": \"<string>\",\n \"postbox_zip_code\": \"<string>\",\n \"sale_price_level\": \"SALEPRICE10\",\n \"salutation\": 0,\n \"sepa_agreement\": \"BASIC\",\n \"sepa_agreement_date\": \"<date>\",\n \"sepa_mandate_reference\": \"<string>\",\n \"since_date\": \"<date>\",\n \"street\": \"<string>\",\n \"suffix_1\": \"<string>\",\n \"suffix_2\": \"<string>\",\n \"tax_number\": \"<string>\",\n \"court\": \"<string>\",\n \"court_registry_number\": \"<string>\",\n \"tax_options\": \"nStbUstID\",\n \"title\": \"<string>\",\n \"archived\": \"<boolean>\",\n \"vat_identifier\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"document_pdf_type\": \"default\",\n \"buyer_reference\": \"<string>\",\n \"foreign_supplier_number\": \"<string>\"\n}"
},
{
"name": "Invalid Customer",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "Authorization",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"last_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"acquire_options\": 2,\n \"additional_groups_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"bank_account\": \"<string>\",\n \"bank_account_owner\": \"<string>\",\n \"bank_bic\": \"<string>\",\n \"bank_code\": \"<string>\",\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"birth_date\": \"<date>\",\n \"cash_allowance\": \"<float>\",\n \"cash_allowance_days\": 7,\n \"cash_discount\": \"<float>\",\n \"cash_discount_type\": \"AMOUNT\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"created_at\": \"<date>\",\n \"updated_at\": \"<string>\",\n \"delivery_title\": \"<string>\",\n \"delivery_city\": \"<string>\",\n \"delivery_state\": \"<string>\",\n \"delivery_company_name\": \"<string>\",\n \"delivery_country\": \"<string>\",\n \"delivery_first_name\": \"<string>\",\n \"delivery_last_name\": \"<string>\",\n \"delivery_personal\": \"<boolean>\",\n \"delivery_salutation\": 0,\n \"delivery_street\": \"<string>\",\n \"delivery_suffix_1\": \"<string>\",\n \"delivery_suffix_2\": \"<string>\",\n \"delivery_zip_code\": \"<string>\",\n \"display_name\": \"<string>\",\n \"emails\": [\n \"<string>\",\n \"<string>\"\n ],\n \"fax\": \"<string>\",\n \"first_name\": \"<string>\",\n \"grace_period\": \"<integer>\",\n \"due_in_days\": \"<integer>\",\n \"group_id\": \"<integer>\",\n \"id\": \"<long>\",\n \"info_1\": \"<string>\",\n \"info_2\": \"<string>\",\n \"internet\": \"<string>\",\n \"login_id\": \"<long>\",\n \"mobile\": \"<string>\",\n \"note\": \"<string>\",\n \"number\": \"<string>\",\n \"payment_options\": 5,\n \"personal\": false,\n \"phone_1\": \"<string>\",\n \"phone_2\": \"<string>\",\n \"postbox\": \"<string>\",\n \"postbox_city\": \"<string>\",\n \"postbox_state\": \"<string>\",\n \"postbox_country\": \"<string>\",\n \"postbox_zip_code\": \"<string>\",\n \"sale_price_level\": \"SALEPRICE10\",\n \"salutation\": 0,\n \"sepa_agreement\": \"BASIC\",\n \"sepa_agreement_date\": \"<date>\",\n \"sepa_mandate_reference\": \"<string>\",\n \"since_date\": \"<date>\",\n \"street\": \"<string>\",\n \"suffix_1\": \"<string>\",\n \"suffix_2\": \"<string>\",\n \"tax_number\": \"<string>\",\n \"court\": \"<string>\",\n \"court_registry_number\": \"<string>\",\n \"tax_options\": \"nStbUstID\",\n \"title\": \"<string>\",\n \"archived\": \"<boolean>\",\n \"vat_identifier\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"document_pdf_type\": \"default\",\n \"buyer_reference\": \"<string>\",\n \"foreign_supplier_number\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/customers/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"customers",
":id"
],
"variable": [
{
"key": "id"
}
]
}
},
"status": "Bad Request",
"code": 400,
"_postman_previewlanguage": "text",
"header": [
],
"cookie": [
],
"body": ""
},
{
"name": "Too Many Requests",
"originalRequest": {
"method": "PUT",
"header": [
{
"key": "Content-Type",
"value": "application/json"
},
{
"description": "Added as a part of security scheme: apikey",
"key": "Authorization",
"value": "<API Key>"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"last_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"acquire_options\": 2,\n \"additional_groups_ids\": [\n \"<integer>\",\n \"<integer>\"\n ],\n \"bank_account\": \"<string>\",\n \"bank_account_owner\": \"<string>\",\n \"bank_bic\": \"<string>\",\n \"bank_code\": \"<string>\",\n \"bank_iban\": \"<string>\",\n \"bank_name\": \"<string>\",\n \"birth_date\": \"<date>\",\n \"cash_allowance\": \"<float>\",\n \"cash_allowance_days\": 7,\n \"cash_discount\": \"<float>\",\n \"cash_discount_type\": \"AMOUNT\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"country\": \"<string>\",\n \"created_at\": \"<date>\",\n \"updated_at\": \"<string>\",\n \"delivery_title\": \"<string>\",\n \"delivery_city\": \"<string>\",\n \"delivery_state\": \"<string>\",\n \"delivery_company_name\": \"<string>\",\n \"delivery_country\": \"<string>\",\n \"delivery_first_name\": \"<string>\",\n \"delivery_last_name\": \"<string>\",\n \"delivery_personal\": \"<boolean>\",\n \"delivery_salutation\": 0,\n \"delivery_street\": \"<string>\",\n \"delivery_suffix_1\": \"<string>\",\n \"delivery_suffix_2\": \"<string>\",\n \"delivery_zip_code\": \"<string>\",\n \"display_name\": \"<string>\",\n \"emails\": [\n \"<string>\",\n \"<string>\"\n ],\n \"fax\": \"<string>\",\n \"first_name\": \"<string>\",\n \"grace_period\": \"<integer>\",\n \"due_in_days\": \"<integer>\",\n \"group_id\": \"<integer>\",\n \"id\": \"<long>\",\n \"info_1\": \"<string>\",\n \"info_2\": \"<string>\",\n \"internet\": \"<string>\",\n \"login_id\": \"<long>\",\n \"mobile\": \"<string>\",\n \"note\": \"<string>\",\n \"number\": \"<string>\",\n \"payment_options\": 5,\n \"personal\": false,\n \"phone_1\": \"<string>\",\n \"phone_2\": \"<string>\",\n \"postbox\": \"<string>\",\n \"postbox_city\": \"<string>\",\n \"postbox_state\": \"<string>\",\n \"postbox_country\": \"<string>\",\n \"postbox_zip_code\": \"<string>\",\n \"sale_price_level\": \"SALEPRICE10\",\n \"salutation\": 0,\n \"sepa_agreement\": \"BASIC\",\n \"sepa_agreement_date\": \"<date>\",\n \"sepa_mandate_reference\": \"<string>\",\n \"since_date\": \"<date>\",\n \"street\": \"<string>\",\n \"suffix_1\": \"<string>\",\n \"suffix_2\": \"<string>\",\n \"tax_number\": \"<string>\",\n \"court\": \"<string>\",\n \"court_registry_number\": \"<string>\",\n \"tax_options\": \"nStbUstID\",\n \"title\": \"<string>\",\n \"archived\": \"<boolean>\",\n \"vat_identifier\": \"<string>\",\n \"zip_code\": \"<string>\",\n \"document_pdf_type\": \"default\",\n \"buyer_reference\": \"<string>\",\n \"foreign_supplier_number\": \"<string>\"\n}",
"options": {
"raw": {
"headerFamily": "json",
"language": "json"
}
}
},
"url": {
"raw": "{{baseUrl}}/customers/:id",
"host": [
"{{baseUrl}}"
],
"path": [
"customers",
":id"
],
"variable": [
{
"key": "id"
}
]
}
},
"status": "Too Many Requests",
"code": 429,
"_postman_previewlanguage": "text",
"header": [
],
"cookie": [
],
"body": ""
}
]
}