Skip to main content

Register carrier in Stripe

POST 

/truckers/payment/register_stripe

Create a Stripe customer account for the carrier and save the customer ID.

Typical Flow:

  1. Called when the user accepts the payment terms
  2. Creates a Stripe account if it doesn't exist
  3. Associates the Stripe account with the carrier's profile

Technical Details:

  • Records acceptance timestamp and IP
  • Creates Stripe account with user data
  • Saves stripe_customer_id in the database

Prerequisites:

  • User must have accepted the payment terms
  • User must have complete data (email, etc.)

Usage Example:

  1. User accepts terms in the frontend
  2. Frontend calls this endpoint
  3. Backend registers with Stripe and returns the customer ID

Responses

Registration in Stripe successful