Skip to content

Latest commit

 

History

History
154 lines (98 loc) · 4.61 KB

IdentityDocumentsAPI.md

File metadata and controls

154 lines (98 loc) · 4.61 KB

\IdentityDocumentsAPI

All URIs are relative to https://api.paxos.com/v2

Method HTTP request Description
DocumentUpload Put /identity/identities/{identity_id}/documents Document Upload
ListIdentityDocuments Get /identity/identities/{identity_id}/documents List Identity Documents

DocumentUpload

DocumentUploadResponse DocumentUpload(ctx, identityId).DocumentUploadRequest(documentUploadRequest).Execute()

Document Upload

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/avianlabs/paxos-go"
)

func main() {
	identityId := "identityId_example" // string | The id of the identity the document is associated with.
	documentUploadRequest := *openapiclient.NewDocumentUploadRequest("Name_example") // DocumentUploadRequest | 

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IdentityDocumentsAPI.DocumentUpload(context.Background(), identityId).DocumentUploadRequest(documentUploadRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IdentityDocumentsAPI.DocumentUpload``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DocumentUpload`: DocumentUploadResponse
	fmt.Fprintf(os.Stdout, "Response from `IdentityDocumentsAPI.DocumentUpload`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
identityId string The id of the identity the document is associated with.

Other Parameters

Other parameters are passed through a pointer to a apiDocumentUploadRequest struct via the builder pattern

Name Type Description Notes

documentUploadRequest | DocumentUploadRequest | |

Return type

DocumentUploadResponse

Authorization

OAuth2

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListIdentityDocuments

ListIdentityDocumentsResponse ListIdentityDocuments(ctx, identityId).IncludePendingDocs(includePendingDocs).Execute()

List Identity Documents

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/avianlabs/paxos-go"
)

func main() {
	identityId := "identityId_example" // string | id associated with the identity
	includePendingDocs := true // bool | Add a list of pending document types for the identity (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.IdentityDocumentsAPI.ListIdentityDocuments(context.Background(), identityId).IncludePendingDocs(includePendingDocs).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `IdentityDocumentsAPI.ListIdentityDocuments``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `ListIdentityDocuments`: ListIdentityDocumentsResponse
	fmt.Fprintf(os.Stdout, "Response from `IdentityDocumentsAPI.ListIdentityDocuments`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
identityId string id associated with the identity

Other Parameters

Other parameters are passed through a pointer to a apiListIdentityDocumentsRequest struct via the builder pattern

Name Type Description Notes

includePendingDocs | bool | Add a list of pending document types for the identity |

Return type

ListIdentityDocumentsResponse

Authorization

OAuth2

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]