Edit recipient address
gecko [master]
https://shopapi.geckodistribution.com
gecko [master]
https://shopapi.geckodistribution.com
POST
/api/open/address/edit
Request
Header Params
version
string
required
Default:
{{shop_openapi_version}}
token
string
required
Default:
{{shop_openapi_token}}
Body Params application/json
id
integer <long> | null
optional
>= 0
Example:
2586860147562607
receiver
string
required
Example:
hardy
cellphone
string
required
Example:
27987654321
postcode
string
required
Example:
9323
suburb
string
required
Example:
Ashbury
city
string
required
Example:
Park
address
string
required
Example:
1 Jones Rd, Kempton Park, Johannesburg, 1632
Example
{
"id": 2586860147562607,
"receiver": "hardy",
"cellphone": "27987654321",
"postcode": "9323",
"suburb": "Ashbury",
"city": "Park",
"address": "1 Jones Rd, Kempton Park, Johannesburg, 1632"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://shopapi.geckodistribution.com/api/open/address/edit' \
--header 'version;' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 2586860147562607,
"receiver": "hardy",
"cellphone": "27987654321",
"postcode": "9323",
"suburb": "Ashbury",
"city": "Park",
"address": "1 Jones Rd, Kempton Park, Johannesburg, 1632"
}'
Responses
🟢200Success
application/json
Body
status
enum<string>
required
Allowed values:
0500
Example:
0
message
string
required
Example:
Operation successful.
data
object | null
optional
id
integer <long>
optional
>= 1
Example:
2586860147562607
Example
{
"status": "0",
"message": "Operation successful.",
"data": {
"id": 2586860147562607
}
}
🟢200Failure