Skip to content

Commit

Permalink
Merge pull request #282 from blockchyp/feature/CHYP-3620
Browse files Browse the repository at this point in the history
Added merchant application submission
  • Loading branch information
devops-blockchyp committed Sep 17, 2024
1 parent 997305f commit 66fd7b7
Show file tree
Hide file tree
Showing 8 changed files with 1,317 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3628,7 +3628,7 @@ By default no roles will be assigned unless valid, comma-delimited, role codes a
// Populate request parameters.
MerchantCredentialGenerationRequest request = new MerchantCredentialGenerationRequest
{

MerchantId = "<MERCHANT ID>",
};

// Run the transaction.
Expand All @@ -3639,6 +3639,46 @@ Console.WriteLine(response);

```

#### Submit Application



* **API Credential Types:** Partner
* **Required Role:** INVITE MERCHANT

This is a partner level API that can be used to submit applications to add new merchant accounts. The application requires a significant amount of detailed information about the merchant and their business. Rather than providing an exhaustive list of required fields, we recommend submitting as much information as possible in your initial request.

If any required fields are missing or if there are any validation errors, the API will return specific error messages indicating which fields need to be addressed. Simply review these validation errors, fill in the missing information or correct any errors, and resubmit the application.

Key areas of information include:
- Business details (name, type, tax information)
- Contact information
- Address information (physical and mailing)
- Owner details
- Bank account information
- Transaction volume estimates
- Operational settings (timezone, batch close time, etc.)

**Note:** Some fields may be conditionally required based on the values of other fields. The validation process will guide you through ensuring all necessary information is provided.




```c#
// Populate request parameters.
SubmitApplicationRequest request = new SubmitApplicationRequest
{

};

// Run the transaction.
Acknowledgement response = await blockchyp.SubmitApplicationAsync(request);

// View the result.
Console.WriteLine(response);

```




Expand Down
19 changes: 19 additions & 0 deletions src/BlockChyp/Client/BlockChypClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,25 @@ public MerchantCredentialGenerationResponse MerchantCredentialGeneration(Merchan
return DashboardRequest<MerchantCredentialGenerationResponse>(HttpMethod.Post, "/api/generate-merchant-creds", request, null);
}

/// <summary>
/// Submits and application to add a new merchant account.
/// </summary>
/// <param name="request">The request details.</param>
public async Task<Acknowledgement> SubmitApplicationAsync(SubmitApplicationRequest request)
{
return await DashboardRequestAsync<Acknowledgement>(HttpMethod.Post, "/api/submit-application", request, null)
.ConfigureAwait(false);
}

/// <summary>
/// Synchronous form of <see cref="SubmitApplicationAsync"/>.
/// </summary>
/// <param name="request">The request details.</param>
public Acknowledgement SubmitApplication(SubmitApplicationRequest request)
{
return DashboardRequest<Acknowledgement>(HttpMethod.Post, "/api/submit-application", request, null);
}

/// <summary>
/// Adds a test merchant account.
/// </summary>
Expand Down
Loading

0 comments on commit 66fd7b7

Please sign in to comment.