---
title: "CreateBatchRfpAsync"
method: POST
path: "/BatchRfp/Create"
tags: ["BatchRfp"]
---

# CreateBatchRfpAsync

`POST /BatchRfp/Create`

## Request

- Base URL: `https://sb2api.servicechannel.com/v3`
- URL: `https://sb2api.servicechannel.com/v3/BatchRfp/Create`
- Auth: OAuth 2
  - Authorization code: `https://sb2login.servicechannel.com/oauth/authorize`
  - Token URL: `https://sb2login.servicechannel.com/oauth/token`
- TypeScript: <https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/docs/BatchRfp/Create/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- ServiceChannelServicesMessagingBatchRfpBatchRfpRequest
  - `BatchCreateRfps` ServiceChannelServicesMessagingBatchRfpBatchCreateRfp[], required: Required, BatchCreateRfp to create the batch of Rfp's
    - `RfpNumber` string: The non-unique RFP identifier. The value is generated automatically if not provided. It cannot be modified.
    - `TradeId` integer, required: The unique trade identifier.
    - `Description` string, required: RFP description.
    - `Date` string, date-time: The RFP creation date and time. The format is `YYYY-MM-DDThh:mm:ss.sssZ`. The default is the current date and time.
    - `DueHrs` number, double: Due time in hours for the provider to respond to the RFP and submit a proposal. The default is 48 hours unless a different value is specified in the `UiCreationRfpDefaultTime` settings group. Shouldn't exceed 99999 hours
    - `DueDate` string, date-time: Due date and time for the provider to respond to the RFP and submit a proposal. The format is `YYYY-MM-DDThh:mm:ss.sssZ`. If `DueHrs` is passed, the `DueDate` value is `Date` plus `DueHrs`. The default is the current date and time plus 48 hours unless a different value is specified in the `UiCreationRfpDefaultTime` settings group.
    - `LocationId` integer, required: Location identifier
    - `CreateRequestId` string: Create Request Id from project module
    - `LocationName` string, required: Store ID
    - `ProviderId` integer, required: The unique provider identifier.
    - `ProjectId` integer: The unique project identifier.
    - `PurchaseOrder` string: The Purchase Order.
    - `ProviderEmail` string: Provider's email
    - `WaitingForPrpEmail` string: User's email
  - `CallbackUri` string, required: Required, URL where callback method will post the result
  - `BatchName` string, required: Optional Batch Name, project module's Name from which this Rfp was created
  - `BatchNumber` string, required: Optional Batch Number, project module's GUID from which this Rfp was created
  - `BatchTemplateFileName` string, required: Origin file name
  - `BatchTemplateRemotePath` string, required: Path to blob
  - `Attachments` ServiceChannelApiModelEntitiesBatchRfpAttachment[]: Optional, Attachments.
    - `OriginalFileName` string
    - `RemotePath` string
    - `Description` string

## Response `200`

Request succeeded and the requested information is in the response.

- ServiceChannelServicesMessagingBatchWorkOrderBatchCreateRfpResponse: The BatchCreateRfpResponse.
  - `SessionId` string: Session generated in batch handler during batch Rfp creation process

## Other responses

- `400`: Bad Request - the request could not be understood or was missing required parameters. <br/>Error codes: <br/> 502 - BatchNumber is empty; <br/> 503 - Validation fails. Request is empty or null;
- `401`: Requested resource requires authentication. <br/>Error codes: <br/> 504 - API call rejected by security permissions;
- `500`: Indicates that a generic error has occurred on the server. <br/>Error codes: <br/> 501 - Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

---

[API](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3.md) - [All operations](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/llms.txt) - [OpenAPI document](https://skmtc.dev/servicechannel/apis/servicechannel-api-v-3/revisions/d490d6596809?raw)
