---
title: "Generate paypal order"
method: POST
path: "/ecommerce/orders/provider/paypal"
tags: ["🛒 Ecommerce"]
---

# Generate paypal order

`POST /ecommerce/orders/provider/paypal`

The API allows a user to generate a **PayPal** order instance, facilitating the creation of an order and initiating the checkout flow before the payment.

The API accepts the `addressId` of the user's address as input to associate it with the order.

This functionality enables users to seamlessly generate an order and proceed to the checkout process, providing a smooth and efficient payment experience using PayPal integration.

## Request body

- object
  - `addressId` string

## Response `201`

Generate paypal order

- object
  - `data` object
    - `id` string
    - `links` object[]
      - `href` string
      - `method` string
      - `rel` string
    - `status` string
  - `message` string
  - `statusCode` number
  - `success` boolean

---

[API](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi.md) · [All operations](https://skmtc.net/hiteshchoudhary-ssesph/apis/freeapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hiteshchoudhary-ssesph/freeapi/revisions/a9f3a290e4dc/schema)
