GET /shops
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
Get list of all Shops.
Returns status code
200
Example Response
[
{
"shopId": "Kv",
"name": "My shop",
"locale": "pl",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": "2016-08-01T10:23:24+0000"
},
{
"shopId": "tG",
"name": "My shop 2",
"locale": "en",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": "2016-08-01T10:23:24+0000"
}
]
POST /shops/{shopId}
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
Allows you to update shop preferences. You should send only those fields that need to be changed. The rest of the properties remain the same.
Returns status code
201
Example Request Body
{
"name": "My shop updated",
"locale": "en"
}
Body params
Field name | Field type | Field description |
---|---|---|
name | string | Name of the shop (4 to 124 characters) |
locale | string | Language locale ( ISO 639-1 ) |
Example Response
{
"shopId": "Kv",
"name": "My shop",
"locale": "pl",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": null
}
Possible Errors
POST /shops
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
This call allows you to create a new shop
Returns status code
201
Example Request Body
{
"name": "My shop",
"locale": "pl"
}
Body params
Field name | Field type | Field description |
---|---|---|
name (required) | string | Name of the shop (4 to 124 characters) |
locale (required) | string | Language locale ( ISO 639-1 ) |
Example Response
{
"shopId": "Kv",
"name": "My shop",
"locale": "pl",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": null
}
Possible Errors
POST /shops/{shopId}/carts
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
This call allows you to create a new cart for a given shop. Only one cart per shop is allowed. Only the contactId parameter is required. ExternalId and CartUrl parameters are optional. Contact Id must be an existing contact in your GetResponse account.
Returns status code
201
Example Request Body
{
"contactId": "Mxui",
"externalId": "123sdf",
"cartUrl": "http://someurl.com"
}
Body params
Field name | Field type | Field description |
---|---|---|
contactId (required) | string | Id of contact that made purchase |
externalId (required) | string | External id |
cartUrl | string | Url address of cart |
Example Response
{
"cartId": "Kv",
"contactId": "Mxui",
"externalId": "123sdf",
"cartUrl": "http://someurl.com",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": null
}
Possible Errors
DELETE /shops/{shopId}/carts/{cartId}
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
Delete cart entity
Returns status code
204
POST /shops/{shopId}/purchase
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
Register purchase for given shop and contact.
Returns status code
202
Example Request Body
{
"contactId": "QBDL9J",
"externalId": "23423423423423",
"purchaseUrl": "http://example.com",
"cost": {
"value": 20.5,
"currency": "USD",
"shippingCost": 10.23,
"discount": 10,
"discountType": "percent"
}
}
Body params
Field name | Field type | Field description |
---|---|---|
contactId (required) | string | Id of the contact that made the purchase. Must be a valid contact in your GetResponse account |
externalId | string | External id |
purchaseUrl | string | Url address of purchase |
value (required) | float | Value of purchase |
currency (required) | string | Currency of purchase ( ISO 4217 ) |
shippingCost (required) | float | Cost of shipping ( 0 if free shipping ) |
discount | float | Value of discount, can be percent or fixed value |
discountType | string | Type of discount, allowed values: percent, value |
Possible Errors
POST /shops/{shopId}/carts/{cartId}
We're upgrading our ecommerce methods soon. If possible, please wait until we announce the new version. If you already use our ecommerce code, please note you'll soon need to rewrite the parts that refer to our ecommerce solution.
Allows you to update cart preferences. You should send only those fields that need to be changed. The rest of the properties remain the same.
Returns status code
200
Example Request Body
{
"externalId": "123sdf",
"cartUrl": "http://someurl.com"
}
Body params
Field name | Field type | Field description |
---|---|---|
externalId | string | External id |
cartUrl | string | Url address of cart |
Example Response
{
"cartId": "Kv",
"contactId": "Mxui",
"externalId": "123sdf",
"cartUrl": "http://someurl.com",
"createdAt": "2016-07-01T07:53:21+0000",
"updatedAt": "2016-07-01T17:12:14+0000"
}