Pre-fill coupons or buyer information into the checkout form?

Sellers may want to pre-fill the buyer's shipping information into the Celery checkout form, so that the buyer does not have to re-enter information.

Sellers can pre-fill the buyer information by adding the information as part of the query string in the URL. For example, if a buyer is sent to following URL, then their address information will automatically included in the checkout. Both the Celery overlay and embedded checkout also support pre-filling.

PRE-FILL VIA URL:

Example URL:

https://shop.trycelery.com/page/prefill_v2?email=first.last@gmail.com&name=First+Last&line1=123%20Main%20Street&line2=Unit%20101&city=San%20Francisco&state=CA&zip=94105&country=US&phone=555-555-5555

You can pre-fill the following information:

  • email
  • first_name
  • last_name
  • name (this will automatically attempt to parse the name into first and last name)
  • line1
  • line2
  • city
  • zip
  • state
  • country
  • phone
  • company
  • coupon

Remember to add ? after your shop identifier and to use & to separate the fields. For fields that require spacing between words, you can use + or %20 to represent the space. Learn more about query strings.


Feedback and Knowledge Base