---
title: CreateBillingAgreement API operation (SOAP)
badges:
  - type: neutral
    text: API
---

# CreateBillingAgreement API operation (SOAP) (/api/nvp-soap/create-billing-agreement-soap)



> **Note:** **Important:** NVP/SOAP is a legacy integration method. We accept new integrations and support existing integrations, but there are newer solutions. If you're starting an integration, [we recommend our latest solutions](/).

Creates a billing agreement with a PayPal account holder. Valid for reference transactions only.

## CreateBillingAgreement request message [#createbillingagreement-request-message]

![CreateBillingAgreementRequestType,WSDL](https://www.paypalobjects.com/webstatic/en_US/developer/docs/api/CreateBillingAgreementRequestType1.gif)

> **Note:** **Note:** Only the fields described in this documentation are available for use.

### CreateBillingAgreement request fields [#createbillingagreement-request-fields]

| Field         | Description                                                                                                                                                                                                                                            |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `Token`<br /> | `xs:string`<br /&#x3E; &#x2A;(Required)* The time-stamped token returned in the `SetExpressCheckout` response.<br /> > **Note:** &#x2A;*Note:** The token expires after three hours. Character length and limitations: 20 single-byte characters<br /> |

## CreateBillingAgreement API response message [#createbillingagreement-api-response-message]

![CreateBillingAgreementResponseType1,WSDL](https://www.paypalobjects.com/webstatic/en_US/developer/docs/api/CreateBillingAgreementResponseType1.gif)

> **Note:** **Note:** Only the fields described in this documentation are available for use.

### CreateBillingAgreement response fields [#createbillingagreement-response-fields]

| Field                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| -------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `BillingAgreementID`<br /> | `xs:string`<br />  Identification number of the billing agreement. When the buyer approves the billing agreement, it remains valid until canceled by the buyer.<br /><br />                  > **Note:** &#x2A;*Note:** For [reference transactions](/archive/express-checkout/integration-guide/ECReferenceTxns), you can pass a billing agreement ID in the `ReferenceID` request field. Also, a billing agreement ID is returned in the transaction response when the transaction references a billing agreement. <br /><br />Character length and limitations: 19 single-byte alphanumeric characters |

## Additional information [#additional-information]

* [API error codes](/api/nvp-soap/errors/)
