Public API

Add in DiapStash button

Add in DiapStash is a button that allows users to directly add diapers to their app inventory.

"Add in DiapStash" is a button that allows users to directly add diapers to their app inventory. When users click the button, they are redirected to the app, which will prompt them to add the diaper to their stock.

The button can be embedded on any website.

Integrate

Style

We offer three different button designs. You are free to choose either one.

Add/Plus icon (blue)

The image url is https://diapstash.com/catalog/buttons/btn_add_in_plus_blue.svg

Add/Plus icon (white)

The image url is https://diapstash.com/catalog/buttons/btn_add_in_plus.svg

Diaper

The image url is https://diapstash.com/catalog/buttons/btn_add_in_diaper.svg

Params

The button must redirect users to the following URL https://diapstash.com/app/catalog/add.

You must add the following GET parameters:

typeId
int required
Type identifierCan be found with the DiapStash API or the on the URL of the catalog page (https://diapstash.com/catalog/types/<id>)
variantId
string
Variant identifier. Can be undefined if the type has no variants.Can be found with the DiapStash API (field id in variants type list)
size
string
Size of the diaper to add
count
int
Total count of diapers to add
packages
int
Number of packages to split the total count. If defined, the app will add n packages of ( n / count ) diapers.
prices
float
Total price of diapers. The app will used the user currency. It's the price for all diapers to add (total count).

Examples

https://diapstash.com/app/catalog/add?typeId=27&count=10&price=32.99