| Method | /testsite/Services/Gateway.asmx/CreatePayment |
| Sertifi API Web Service > All Operations Resource Group : /testsite/Services/Gateway.asmx/CreatePayment (Method) |
The request body is of type CreatePayment.
| Name | Description | Data Type |
|---|---|---|
| p_APICode | The API code of the site. This can be found through your Sertifi web interface under Administration -> Account Settings. | xml:string |
| p_FileID | The id of the relevant file. | xml:string |
| amount | The amount for the payment (1 period/decimal point and no commas allowed.) | xml:decimal |
| description | The name of the payment that signers see. | xml:string |
| recurrence | The interval at which the payment gets charged. | PaymentReccurence |
| datePaymentDue | date in yyyy-MM-dd format | xml:string |
| operation | Whether this will charge a card, 'Pay', or just authorise the card, 'Authorize'. | PaymentOperationType |
| xmlContent | An XML document specifying billing details of the payment, including whether or not surcharging will be applied. | xml:string |
| usePaymentRules | Should this payment abide by the site's overall payment requirements? | xml:boolean |

The response body is of type CreatePaymentResponse.
| Name | Description | Data Type |
|---|---|---|
| CreatePaymentResult | payment id or error message. | xml:string |

Common error messages:
"ERROR: Invalid API Code"
"ERROR: Payments are not enabled for this account."
"ERROR: File could not be accessed"
"ERROR: Payments can no longer be added to this file."
"ERROR: Could not save payment"
Values for AllowedPaymentMethods:
"CC", "SEPA", "banktransfer", "ach", "ach,cc", "all"