204
after saving data.{
"address": {
"type": "PERSON",
"name": "Test",
"surname": "Testowy",
"city": "Testowo",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"phone": "48123123123",
"email": "newEmail@test.pl"
},
"agreements": {
"sendPaperInvoices": true,
"sendDiscountCodes": true,
"sendLabel": true
},
"cashOnDelivery": {
"bankAccountNumber": "PL52102051387825000705064082",
"name": "newCodName",
"addressLine1": "newCodFirstAddressLine",
"addressLine2": "newCodSecondAddressLine"
},
"currency": "PLN",
"invoicesToOtherEmail": "otherEmail@acme.com",
"labelsToOtherEmail": "otherEmail@acme.com"
}
curl --location --request PUT 'https://test.api.globkurier.pl/v1/user' \
--header 'Accept-Language: pl' \
--header 'X-Auth-Token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"address": {
"type": "PERSON",
"name": "Test",
"surname": "Testowy",
"city": "Testowo",
"street": "Testowa Ulica",
"houseNumber": "1x",
"apartmentNumber": "2a",
"postCode": "01-001",
"countryId": 1,
"phone": "48123123123",
"email": "newEmail@test.pl"
},
"agreements": {
"sendPaperInvoices": true,
"sendDiscountCodes": true,
"sendLabel": true
},
"cashOnDelivery": {
"bankAccountNumber": "PL52102051387825000705064082",
"name": "newCodName",
"addressLine1": "newCodFirstAddressLine",
"addressLine2": "newCodSecondAddressLine"
},
"currency": "PLN",
"invoicesToOtherEmail": "otherEmail@acme.com",
"labelsToOtherEmail": "otherEmail@acme.com"
}'
{}