跳到主要内容

sendPaymentRequest

sendPaymentRequest(SalesRequestDto)

POST /api/2.0/portal/payment/request

Contact the sales team

Sends the portal's message to the ONLYOFFICE sales team - the contact-sales form behind a request for a quote, an invoice or a plan that cannot be bought online. email has to be a well-formed address and is where the answer will go, while userName and message say who is asking and what for; all three are required and none may be empty. Only a DocSpace administrator may call it. Nothing on the portal changes: no plan, no quota and no payment is touched, a message is mailed out and the request is written to the portal audit trail. There is no response body - status 200 means the message was handed to the mail service - and the call is not idempotent, so a repeat sends a second message. It is limited to ten requests a minute per user by default and answers 429 above that.

Parameters​

NameInTypeDescriptionNotes
SalesRequestDtobodySalesRequestDto[optional]

Responses​

Status codeDescriptionTypeResponse headers
200The message has been handed to the mail service; the response carries no content-X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
400email is not a well-formed address, or one of the required fields is empty--
403The caller is not a DocSpace administrator--
429This user has made more than ten requests in a minuteErrorApiResponseRetry-After
401UnauthorizedErrorApiResponse-
500Internal Server Error.ErrorApiResponse-
502Bad Gateway. Returned by the reverse proxy, response body may be HTML and not JSON.--
503Service Unavailable. Returned by the reverse proxy, response body may be HTML and not JSON.--

Return type​

null (empty response body)

Authorization​

Basic, OAuth2 (scopes: read, write), ApiKeyBearer, asc_auth_key, Bearer, OpenId

HTTP request headers​

  • Content-Type: application/json
  • Accept: application/json