Notarize without storage(complete registration)

This API call is used to complete the request to notarize a document issued previously without using the storage of S3.

HTTP Request notarization without storage

POST https://app.dedit.io/api/v2/registration/{hash of the request}/forfait

Headers

NameValueDescription

Content-Type

application/json

The content type of the request body

Authorization

Bearer $TOKEN

authentication token that is used to authorize access to an API

Request body

NameTypeDescription

sessionId

string

id of the Stripe session

id

string

id of Dedit subscription session

userId

int

id of the user

planId

string

id of Dedit subscription plan

planNickname

string

name of Dedit subscription

status

string

status of Dedit subscription

created

timestamp

date of Dedit subscription creation

currentPeriodStart

timestamp

date of Dedit subscription period start

currentPeriodEnd

timestamp

date of Dedit subscription period end

canceledAt

boolean

subscription cancellation

custumer

string

id of the stripe account connected to the Dedit subscription

defaultPaymentMethod

string

payment method

latestInvoice

string

invoice id

Example of a valid request body:

{
    "sessionId":"cs_live_0BmfZx5ORHIuf3doTcIR3AD8W1zb4BdwGwh9qjUtZbQaztFjpHohj5zC1",
    "id":"sub_1KeRbLGkNaUEmxxxKjvhTH",
    "userId":1098,
    "planId":"price_1KeRVwGkxxxxmNJUHlWqB2La",
    "planNickname":"Dedit Milleallanno",
    "status":"active",
    "created":1647555323,
    "currentPeriodStart":1647555323,
    "currentPeriodEnd":1679091323,
    "canceledAt":0,
    "customer":"cus_LF6zkMz7xxxxBm",
    "defaultPaymentMethod":null,
    "latestInvoice":"in_1KeRbLxxxxEmNJUDfjoxzZk"
}

The above command returns a JSON structured like this:

{
    "hash":"905d4f33b218427e8371341674a913db02402f648fef6cdf47c16f65d2dd3001",
    "description":"TEST 13-04-2022",
    "custody":false,
    "signed":false,
    "signer":null,
    "signature":null,
    "txHash":null,
    "status":"registered",
    "blockchainType":"ALGORAND",
    "holder":null,
    "txId":null,
    "assetId":null,
    "tags":[],
    "paymentId":"sub_1KeRbLGkccccU17KjvhTH",
    "creationDate":1649855665000,
    "payload":null,
    "userId":1098
}

Last updated