Skip to main content

Updating a Previously Created Pickup Point in the Directory

This method is used to update a previously created pickup point of any type in the PP directory in the Gold Apple IS. Reasons for an update may include a change in a location's availability, closure for renovation, a change in working hours, and any other events related to a change in the PP's availability or its operating details.

Basic Information​

Request method typePUT
Path / URL/api/v1/pickpoints/{pickpointId}/update
DescriptionMethod for updating a PP that has been added to the directory stored in the Gold Apple IS. One request — one PP.
DirectionThe request is executed by the courier service. The response is provided by the Gold Apple IS.

Request​

Request Path Parameters​

ParameterData typeRequiredDescriptionComment
idstring1Courier service PP identifierThe courier service PP identifier passed when the PP was created in the directory

Header Parameters​

ParameterData typeRequiredDescriptionComment
Authorizationstring1Access token issued by the servicesee the Authorization in the Service method
content-typestring1Request content typeFilled in as "application/json"

Request Parameters​

№ParameterData typeRequiredDescriptionComment
1countryISOCodestring (2)1Courier service country codePer the "ISO 3166-1, alpha-2" standard
2deliveryServiceCodestring (100)1Courier service codeDuplicates the information at the object level
3typestring (20)1Pick-up point typeSee "Format Tables" → "Table 1"
4addressobject1Object containing address data
5Address object typeobject1Object containing address information.Address object (see Appendix: Address Data Types)
6openingHoursarray of objects1Array of PP working-hours objects
7dayOfWeekenum1Identifier of the day for which the working schedule is setSee "Format Tables" → "Table 3"
8workingDaybool1Working-day flagIf on, the PP operates on this day of the week
9opensstring (15)0PP opening timePer the "ISO 8601" standard (hh:mm:ss)
10closesstring (15)0PP closing timePer the "ISO 8601" standard (hh:mm:ss)
11phoneNumberstring (20)0PP phone numberNo special characters, digits only (country code and area code)
12isAvailableboolean1PP availability statusIf the flag is on, the PP is active; if off, it is not
13orderStoragePeriodint1Order storage period, in calendar daysExample: 5
14optionsobject1Object with options available at the PP
15orderIssuingbool1Order issuing availableIf on, the PP can hand out orders
16orderReturningbool1Order return availableIf on, the PP can accept returns
17haveTryOnbool1Fitting rooms and try-on availableIf on, the PP has fitting rooms
18havePartialBuybool1Partial purchase availableI.e. the PP can carry out a partial hand-out
19packageMinWeightint1Minimum parcel weight for this PP, in grams
20packageMaxWeightint1Maximum parcel weight for this PP, in grams
21packageMaxLengthdecimal1Maximum parcel length for the PP, in centimeters.Along the X axis. Precise to two decimal places
22packageMaxHeightdecimal1Maximum parcel height for the PP, in centimeters.Along the Y axis. Precise to two decimal places
23packageMaxWidthdecimal1Maximum parcel width for the PP, in centimeters.Along the Z axis. Precise to two decimal places
24paymentOptionsobject1Object with payment-on-receipt options
25haveCashPaymentbool1Cash-on-delivery available (post-payment)If on, payment on receipt is possible
26haveCardPaymentbool1Card payment available (terminal)If on, the PP accepts card payment
27haveQrCodePaymentbool1QR-code payment available (terminal, PP software)If on, the PP has QR-code payment

Request example​

{
"type": "POSTOMAT",
"address": {
"addressType": "coord",
"fullAddress": "125009, Moscow, Tverskaya St., 7",
"cityFias": "2763c110-cb8b-416a-9dac-ad28a55b4402",
"latitude": 55.755816,
"longitude": 37.617633,
"flat": "",
"addressComment": "Parcel locker 'Meridian', 1st floor, near the main entrance"
},
"openingHours": [
{
"dayOfWeek": 1,
"workingDay": true,
"opens": "10:00:00",
"closes": "22:00:00"
},
{
"dayOfWeek": 2,
"workingDay": true,
"opens": "10:00:00",
"closes": "22:00:00"
},
{
"dayOfWeek": 3,
"workingDay": true,
"opens": "10:00:00",
"closes": "22:00:00"
},
{
"dayOfWeek": 4,
"workingDay": true,
"opens": "10:00:00",
"closes": "22:00:00"
},
{
"dayOfWeek": 5,
"workingDay": true,
"opens": "10:00:00",
"closes": "22:00:00"
},
{
"dayOfWeek": 6,
"workingDay": false,
"opens": null,
"closes": null
},
{
"dayOfWeek": 7,
"workingDay": false,
"opens": null,
"closes": null
}
],
"phoneNumber": null,
"isAvailable": true,
"orderStoragePeriod": 4,
"options": {
"orderIssuing": true,
"orderReturning": false,
"haveTryOn": false,
"havePartialBuy": false,
"packageMinWeight": 50,
"packageMaxWeight": 3000,
"packageMaxLength": 45,
"packageMaxHeight": 27.9,
"packageMaxWidth": 30
},
"paymentOptions": {
"haveCashPayment": false,
"haveCardPayment": true,
"haveQrCodePayment": true
}
}

Response​

Response Codes and Messages​

CodeStatusMessageReason
200OKPickpoint has been updated.Everything completed successfully. The pickup point information was updated
400Bad RequestMissing or inappropriate required parametersRequired parameters are missing or invalid.
401UnauthorizedToken is invalidAuthentication error at the courier service
403ForbiddenHas no permissionInsufficient permissions
500Internal Server ErrorServer unavailableThe server is unavailable

Successful Response Parameters​

200 OK

Unsuccessful Response Parameters​

ParameterData typeRequiredDescriptionComment
errorstring1Human-readable description of the errorsee the "Response Codes and Messages" section

Unsuccessful response example​

{
"error": "Invalid request format"
}