Create a pickup

Endpoint
Copy

Creates a pickup rental into the system and ejects a powerbank from a Chimpy Station.

Path parameters

  • external_id (string, required) The external identifier of the station. It usually consists of 4 lowercase alphanumeric characters (e.g. abc1)

Body parameters

  • payment_gateway (string, required) The Payment Gateway used. Accepted values: "stripe", "paypal"
  • stripe_payment_intent_id (string, required if the payment gateway is Stripe) The Payment Intent ID from Stripe. See Stripe Payment Intent API.
  • paypal_order_id (string, required if the payment gateway is Paypal) The Order ID from Paypal. Note: this order should be created with the intent to authorize (not capture). See Paypal Orders API.
  • paypal_auth_id (string, required if the payment gateway is Paypal) The Payment Authorization ID from Paypal. See Paypal Orders API.
  • auth0_id (string, optional) The Auth0 identifier of the user, if logged in. This identifier may affect the pricing, if the user has any coupons attached to his accounts.

Query parameters

  • lang (string, optional) 2-digit lowercase language code (ISO 639-1 Code). Supported values: Locales.

Response

Success

HTTP 200

Sample response body
Copy

Error

HTTP 400

On top of the errors listed in the Get Pricing endpoint, transactional errors are possible due to a payment failure, an eject failure or, in general, some logic or network error.

Sample response body
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard