---
schema_version: "1"
id: 6609bddff7c6690c14792baa3b85075fb83354a744dd3d765aca9486fce62b83
title: DataIntegrationRecordPurchasePermission
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_dataintegrationrecordpurchasepermission.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_dataintegrationrecordpurchasepermission.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0e99691714a9de77c158ba4619e2edbcfaba509fdc8070877c4f03dd8c7db1ba
description: Represents Lightning Data purchase credits that a Salesforce admin has granted to users. Available in Tooling API version 42.0 and later.
---
# DataIntegrationRecordPurchasePermission

Represents Lightning Data purchase credits that a Salesforce admin has granted to users. Available in Tooling API version 42.0 and later.

## Supported SOAP Calls

create(), delete(), query(), retrieve(), update(), upsert()

## Supported REST HTTP Methods

GET, HEAD, and POST

For operations on a specific object, DataIntegrationRecordPurchasePermission supports GET, PATCH, DELETE, and HEAD.

## Special Access Rules

As of Spring ’20 and later, only your Salesforce org's internal users can access this object.

## Fields

| Field | Details |
| --- | --- |
| ExternalObject | 
Type

picklist

Properties

Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

This field can hold a single value: the name of the data service record matched to the Salesforce record.



 |
| UserId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

The ID of a user to whom purchase credits are assigned.



 |
| UserRecordPurchaseLimit | 

Type

int

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The number of purchase credits assigned to a user.



 |

## Usage

Sample GET response:

{
  "attributes" : {
    "type" : "DataIntegrationRecordPurchasePermission",
    "url" : "/services/data/v42.0/tooling/sobjects/DataIntegrationRecordPurchasePermission/0GyR0000000009xKAA"
  },
  "Id" : "0GyR0000000009xKAA",
  "IsDeleted" : false,
  "CreatedDate" : "2017-11-02T22:02:36.000+0000",
  "CreatedById" : "005R0000000F4ItIAK",
  "LastModifiedDate" : "2017-12-12T18:22:35.000+0000",
  "LastModifiedById" : "005R0000000F4ItIAK",
  "SystemModstamp" : "2017-12-12T18:22:35.000+0000",
  "UserId" : "005R0000000F4ItIAK",
  "ExternalObject" : "managedPackageNamespace\_\_CustomObject\_\_x",
  "UserRecordPurchaseLimit" : 300
}