Sign in

Create invoice

documented

Create a PayPal invoice.

POST /v1/invoicing/invoicesInvoicingno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.paypal.com/v1/invoicing/invoices" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{
    "merchant_info": {
      "email": "{{$merchant_email}}",
      "first_name": "{{$merchant_first_name}}",
      "last_name": "{{$merchant_last_name}}",
      "business_name": "{{$merchant_business_name}}",
      "address": {
        "line1": "{{$merchant_address_line1}}",
        "city": "{{$merchant_city}}",
        "state": "{{$merchant_state}}",
        "postal_code": "{{$merchant_postal_code}}",
        "country_code": "{{$merchant_country_code}}"
      }
    },
    "billing_info": [
      {
        "email": "{{$billing_email}}",
        "first_name": "{{$billing_first_name}}",
        "last_name": "{{$billing_last_name}}"
      }
    ],
    "items": [
      {
        "name": "{{$item1_name}}",
        "quantity": {{$item1_quantity}},
        "unit_price": {
          "currency": "{{$item1_currency}}",
          "value": "{{$item1_value}}"
        }
      }
      ,
      {
        "name": "{{$item2_name}}",
        "quantity": {{$item2_quantity}},
        "unit_price": {
          "currency": "{{$item2_currency}}",
          "value": "{{$item2_value}}"
        }
      }
    ],
    "invoice_date": "{{$invoice_date}}",
    "note": "{{$note}}",
    "terms": "{{$terms}}",
    "logo_url": "{{$logo_url}}",
    "reference": "{{$reference}}",
    "cc_info": [ { "email": "{{$cc_email}}" } ]
  }}'